Skip to content

Commit

Permalink
Fixed null not encoded correctly in jsValueToDynamicValue
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Jan 30, 2022
1 parent f51b123 commit b7c949e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/IHP/DataSync/ihp-querybuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function jsValueToDynamicValue(value) {
} else if (typeof value === "boolean") {
return { tag: 'BoolValue', contents: value };
} else if (value === null || value === undefined) {
return { tag: 'NullValue' };
return { tag: 'Null' };
}

throw new Error('Could no transform JS value to DynamicValue. Supported types: string, number, boolean, null, undefined');
Expand Down

0 comments on commit b7c949e

Please sign in to comment.