Skip to content

Commit 33b1109

Browse files
committed
fix: undefined check for user input values
1 parent 4029155 commit 33b1109

File tree

1 file changed

+1
-1
lines changed
  • javascript/engine-js/src/tokenScript/data/function

1 file changed

+1
-1
lines changed

javascript/engine-js/src/tokenScript/data/function/Argument.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export class Argument extends AbstractDependencyBranch implements IArgument {
174174
// local-ref can be used to get attributes defined by a view that aren't explicitly defined in the tokenscript
175175
const value = this.tokenScript.getViewController().getUserEntryValue(this.localRef, tokenContext?.selectedTokenId ?? "-1");
176176

177-
if (!value){
177+
if (value === undefined){
178178
throw e;
179179
}
180180

0 commit comments

Comments
 (0)