From 9e5ed82e52a49cfaad8a62242fb8035f592dcbb7 Mon Sep 17 00:00:00 2001 From: ocket8888 Date: Tue, 25 Oct 2022 13:16:12 -0600 Subject: [PATCH] Fix TP DSR edit page not rendering --- .../form/deliveryService/FormDeliveryServiceController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traffic_portal/app/src/common/modules/form/deliveryService/FormDeliveryServiceController.js b/traffic_portal/app/src/common/modules/form/deliveryService/FormDeliveryServiceController.js index 76fb9ab624..bfff737626 100644 --- a/traffic_portal/app/src/common/modules/form/deliveryService/FormDeliveryServiceController.js +++ b/traffic_portal/app/src/common/modules/form/deliveryService/FormDeliveryServiceController.js @@ -463,7 +463,7 @@ var FormDeliveryServiceController = function(deliveryService, dsCurrent, origin, // add an empty one so the dynamic form widget is visible. empty strings get stripped out on save anyhow. $scope.deliveryService.consistentHashQueryParams = [ '' ]; } - if (deliveryService.lastUpdated !== undefined) { + if (deliveryService.lastUpdated) { deliveryService.lastUpdated = new Date(deliveryService.lastUpdated.replace("+00", "Z")); } };