From fc90a25b528a4f0b0c843bc40c5d406fdaf8818c Mon Sep 17 00:00:00 2001 From: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com> Date: Tue, 16 Jul 2024 16:27:46 +0530 Subject: [PATCH] [fix]: Parameters issue on queries (#518) * Added authorization header from our side (overriding the got) (#509) * Added authorization header from ourside * Console log typo * Added requestURL and authorization header changes * Added some PR changes * Added comments * Added a parameters back to the state which is passed from the function call --------- Co-authored-by: Muhsin Shah C P --- frontend/src/_helpers/utils.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/_helpers/utils.js b/frontend/src/_helpers/utils.js index 907c95c42e..04f0d19bdb 100644 --- a/frontend/src/_helpers/utils.js +++ b/frontend/src/_helpers/utils.js @@ -169,6 +169,10 @@ export function resolveReferences( const state = useCurrentStateStore.getState(); //!state=currentstate => The state passed down as an argument retains the previous state. + if (_state.parameters) { + state.parameters = { ..._state.parameters }; + } + switch (objectType) { case 'string': { if (object.includes('{{') && object.includes('}}') && object.includes('%%') && object.includes('%%')) {