mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Fix: Application crash on startup due to invalid query parameters
This commit is contained in:
parent
87b9f28193
commit
49c2a5b5a8
1 changed files with 13 additions and 11 deletions
|
|
@ -242,18 +242,20 @@ export function resolveReferences(
|
|||
} else {
|
||||
const dynamicVariables = getDynamicVariables(object);
|
||||
|
||||
for (const dynamicVariable of dynamicVariables) {
|
||||
const value = resolveString(
|
||||
dynamicVariable,
|
||||
state,
|
||||
customObjects,
|
||||
reservedKeyword,
|
||||
withError,
|
||||
forPreviewBox
|
||||
);
|
||||
if (dynamicVariables) {
|
||||
for (const dynamicVariable of dynamicVariables) {
|
||||
const value = resolveString(
|
||||
dynamicVariable,
|
||||
state,
|
||||
customObjects,
|
||||
reservedKeyword,
|
||||
withError,
|
||||
forPreviewBox
|
||||
);
|
||||
|
||||
if (typeof value !== 'function') {
|
||||
object = object.replace(dynamicVariable, value);
|
||||
if (typeof value !== 'function') {
|
||||
object = object.replace(dynamicVariable, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue