From 9099e1710ebf02642fdf055bb88bd03695434f83 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 17 Sep 2024 15:06:10 +0530 Subject: [PATCH] fix: pass obj to form script --- frontend/src/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/index.js b/frontend/src/utils/index.js index ce5545051..72f615388 100644 --- a/frontend/src/utils/index.js +++ b/frontend/src/utils/index.js @@ -143,7 +143,7 @@ export async function setupCustomizations(data, obj) { statuses = statuses.concat(_script?.statuses || []) } } else { - let _script = await getFromScript(data._form_script, data) + let _script = await getFromScript(data._form_script, obj) actions = _script?.actions || [] statuses = _script?.statuses || [] }