fix code scanning alert #11
parent
1c3d158b11
commit
947eea600c
|
|
@ -42,7 +42,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
workOrderId
|
workOrderId
|
||||||
}, (responseJSON) => {
|
}, (responseJSON) => {
|
||||||
if (responseJSON.success) {
|
if (responseJSON.success) {
|
||||||
window.location.href = urlPrefix + "/workOrders/" + workOrderId;
|
window.location.href = urlPrefix + "/workOrders/" + encodeURIComponent(workOrderId);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
bulmaJS.alert({
|
bulmaJS.alert({
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ declare const bulmaJS: BulmaJS;
|
||||||
},
|
},
|
||||||
(responseJSON: { success: boolean; errorMessage?: string }) => {
|
(responseJSON: { success: boolean; errorMessage?: string }) => {
|
||||||
if (responseJSON.success) {
|
if (responseJSON.success) {
|
||||||
window.location.href = urlPrefix + "/workOrders/" + workOrderId;
|
window.location.href = urlPrefix + "/workOrders/" + encodeURIComponent(workOrderId);
|
||||||
} else {
|
} else {
|
||||||
bulmaJS.alert({
|
bulmaJS.alert({
|
||||||
title: "Error Closing Work Order",
|
title: "Error Closing Work Order",
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue