From 36fe174877025e3d50be50919edeebebf23a7722 Mon Sep 17 00:00:00 2001 From: Moe Date: Sat, 4 Dec 2021 08:42:49 -0800 Subject: [PATCH] fix Additional Input Map not loading fields+ --- web/assets/js/bs5.monitorSettings.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/web/assets/js/bs5.monitorSettings.js b/web/assets/js/bs5.monitorSettings.js index 44b2dffc..c515134d 100644 --- a/web/assets/js/bs5.monitorSettings.js +++ b/web/assets/js/bs5.monitorSettings.js @@ -499,12 +499,7 @@ function importIntoMonitorEditor(options){ //get maps monitorSectionInputMaps.empty() if(monitorDetails.input_maps && monitorDetails.input_maps !== ''){ - var input_maps - try{ - input_maps = safeJsonParse(monitorDetails.input_maps) - }catch(er){ - input_maps = monitorDetails.input_maps; - } + var input_maps = safeJsonParse(monitorDetails.input_maps) if(input_maps.length > 0){ showInputMappingFields() $.each(input_maps,function(n,v){