mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
fix: pass parameter state to resolveReference function
This commit is contained in:
parent
13b2832c8c
commit
e1bc972b61
1 changed files with 2 additions and 2 deletions
|
|
@ -945,12 +945,12 @@ export function getQueryVariables(options, state) {
|
|||
const vars =
|
||||
options.includes('{{constants.') && !options.includes('%%')
|
||||
? 'HiddenOrganizationConstant'
|
||||
: resolveReferences(options);
|
||||
: resolveReferences(options, state);
|
||||
queryVariables[options] = vars;
|
||||
} else {
|
||||
const dynamicVariables = getDynamicVariables(options) || [];
|
||||
dynamicVariables.forEach((variable) => {
|
||||
queryVariables[variable] = resolveReferences(variable);
|
||||
queryVariables[variable] = resolveReferences(variable, state);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue