Skip to content

Commit

Permalink
fix(Designer): Fixed issue where dynamic data call would fail when va…
Browse files Browse the repository at this point in the history
…lue is non-string (#4584)

Fixed issue where dynamic data call would fail when value is non-string
  • Loading branch information
rllyy97 committed Apr 9, 2024
1 parent d2cbf94 commit 65e9ab6
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -53,10 +53,9 @@ export function isWhitespace(ch: string) {
}

export function isTemplateExpression(value: string): boolean {
if (isNullOrEmpty(value) || value.length < 2) {
if (isNullOrEmpty(value) || typeof value !== 'string' || value.length < 2) {
return false;
}

return value.charAt(0) === '@' || value.indexOf('@{') > 0;
}

Expand Down

0 comments on commit 65e9ab6

Please sign in to comment.