From c464876030ee79d7fe128a050dd3bf1420ce3209 Mon Sep 17 00:00:00 2001 From: Jeet Viramgama Date: Thu, 20 Jul 2023 23:06:28 +0530 Subject: [PATCH] fix(admin-ui): update location path on script path change --- .../admin/components/CustomScripts/CustomScriptForm.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/admin-ui/plugins/admin/components/CustomScripts/CustomScriptForm.js b/admin-ui/plugins/admin/components/CustomScripts/CustomScriptForm.js index f76cf2aae..24d1ff0b5 100644 --- a/admin-ui/plugins/admin/components/CustomScripts/CustomScriptForm.js +++ b/admin-ui/plugins/admin/components/CustomScripts/CustomScriptForm.js @@ -91,7 +91,8 @@ function CustomScriptForm({ item, scripts, handleSubmit, viewOnly }) { aliases: item.aliases, moduleProperties: item.moduleProperties, configurationProperties: item.configurationProperties, - script_path: scriptPath + script_path: scriptPath, + locationPath: item?.locationPath }, validationSchema: Yup.object({ name: Yup.string() @@ -185,6 +186,7 @@ function CustomScriptForm({ item, scripts, handleSubmit, viewOnly }) { function scriptPathChange(value) { if (value != '') { + formik.setFieldValue('locationPath', value) if (!item.moduleProperties) { item.moduleProperties = [] }