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