Skip to content

Commit

Permalink
fix(state): when the value of the field is 0, it should not be consid…
Browse files Browse the repository at this point in the history
…ered empty (#202)
  • Loading branch information
minlovehua authored Dec 24, 2024
1 parent d23082c commit e6e9dd0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/state/src/utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function isEmpty(value: any) {
return Reflect.ownKeys(value).length === 0;
}

return isUndefinedOrNull(value) || value == '';
return isUndefinedOrNull(value) || value === '';
}

export function isPathEqual(path: Path, another: Path): boolean {
Expand All @@ -25,4 +25,3 @@ export function sortByViewPosition(data: AITableViewRecords | AITableViewFields,
}
return data;
}

0 comments on commit e6e9dd0

Please sign in to comment.