Skip to content

Commit 2240ad1

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/engine-js/src/view/ViewController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export class ViewController {
157157
* @param scopeId
158158
*/
159159
getUserEntryValue(key: string, scopeId: string){
160-
if (!this.userEntryValues[scopeId]?.[key])
160+
if (this.userEntryValues[scopeId]?.[key] === undefined)
161161
return undefined;
162162

163163
return this.userEntryValues[scopeId][key];

0 commit comments

Comments
 (0)