codeql fix, linting

deepsource-autofix-76c6eb20
Dan Gowans 2023-02-24 11:21:54 -05:00
parent cd1c452559
commit 0664b43cca
6 changed files with 13 additions and 23 deletions

View File

@ -51,7 +51,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
}, (responseJSON) => {
var _a;
if (responseJSON.success) {
window.location.href = los.urlPrefix + '/workOrders/' + workOrderId;
window.location.href = los.getWorkOrderURL(workOrderId);
}
else {
bulmaJS.alert({
@ -557,9 +557,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
else {
rowElement.insertAdjacentHTML('beforeend', `<td><span class="has-text-grey">(No ${los.escapedAliases.Lot})</span></td>`);
}
rowElement.insertAdjacentHTML('beforeend', '<td>' +
lotOccupancy.occupancyStartDateString +
'</td>' +
rowElement.insertAdjacentHTML('beforeend', `<td>${lotOccupancy.occupancyStartDateString}</td>` +
('<td>' +
(lotOccupancy.occupancyEndDate
? lotOccupancy.occupancyEndDateString
@ -567,9 +565,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
'</td>') +
('<td>' +
(lotOccupancy.lotOccupancyOccupants.length === 0
? '<span class="has-text-grey">(No ' +
cityssm.escapeHTML(los.escapedAliases.Occupants) +
')</span>'
? `<span class="has-text-grey">(No ${cityssm.escapeHTML(los.escapedAliases.Occupants)})</span>`
: cityssm.escapeHTML(lotOccupancy.lotOccupancyOccupants[0].occupantName +
' ' +
lotOccupancy.lotOccupancyOccupants[0]

View File

@ -51,7 +51,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
}, (responseJSON) => {
var _a;
if (responseJSON.success) {
window.location.href = los.urlPrefix + '/workOrders/' + workOrderId;
window.location.href = los.getWorkOrderURL(workOrderId);
}
else {
bulmaJS.alert({

View File

@ -85,7 +85,7 @@ declare const bulmaJS: BulmaJS
},
(responseJSON: { success: boolean; errorMessage?: string }) => {
if (responseJSON.success) {
window.location.href = los.urlPrefix + '/workOrders/' + workOrderId
window.location.href = los.getWorkOrderURL(workOrderId)
} else {
bulmaJS.alert({
title: 'Error Closing Work Order',

View File

@ -420,9 +420,7 @@ function doAddLotOccupancy(clickEvent) {
else {
rowElement.insertAdjacentHTML('beforeend', `<td><span class="has-text-grey">(No ${los.escapedAliases.Lot})</span></td>`);
}
rowElement.insertAdjacentHTML('beforeend', '<td>' +
lotOccupancy.occupancyStartDateString +
'</td>' +
rowElement.insertAdjacentHTML('beforeend', `<td>${lotOccupancy.occupancyStartDateString}</td>` +
('<td>' +
(lotOccupancy.occupancyEndDate
? lotOccupancy.occupancyEndDateString
@ -430,9 +428,7 @@ function doAddLotOccupancy(clickEvent) {
'</td>') +
('<td>' +
(lotOccupancy.lotOccupancyOccupants.length === 0
? '<span class="has-text-grey">(No ' +
cityssm.escapeHTML(los.escapedAliases.Occupants) +
')</span>'
? `<span class="has-text-grey">(No ${cityssm.escapeHTML(los.escapedAliases.Occupants)})</span>`
: cityssm.escapeHTML(lotOccupancy.lotOccupancyOccupants[0].occupantName +
' ' +
lotOccupancy.lotOccupancyOccupants[0]

View File

@ -598,19 +598,17 @@ document
rowElement.insertAdjacentHTML(
'beforeend',
'<td>' +
lotOccupancy.occupancyStartDateString +
'</td>' +
`<td>${lotOccupancy.occupancyStartDateString!}</td>` +
('<td>' +
(lotOccupancy.occupancyEndDate
? lotOccupancy.occupancyEndDateString
? lotOccupancy.occupancyEndDateString!
: '<span class="has-text-grey">(No End Date)</span>') +
'</td>') +
('<td>' +
(lotOccupancy.lotOccupancyOccupants!.length === 0
? '<span class="has-text-grey">(No ' +
cityssm.escapeHTML(los.escapedAliases.Occupants) +
')</span>'
? `<span class="has-text-grey">(No ${cityssm.escapeHTML(
los.escapedAliases.Occupants
)})</span>`
: cityssm.escapeHTML(
lotOccupancy.lotOccupancyOccupants![0].occupantName! +
' ' +

File diff suppressed because one or more lines are too long