Skip to content

Commit

Permalink
fix(ui-tablemode): replace null cell values with empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
hdinia committed Jul 31, 2023
1 parent b85bfdc commit 0432b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/components/common/FormTable/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function Table(props: TableProps) {
const handleAfterChange: HandsontableProps["afterChange"] =
function afterChange(this: unknown, changes, ...rest): void {
changes?.forEach(([row, column, _, nextValue]) => {
setValue(`${data[row].id}.${column}`, nextValue);
setValue(`${data[row].id}.${column}`, nextValue ?? "");
});
restProps.afterChange?.call(this, changes, ...rest);
};
Expand Down

0 comments on commit 0432b24

Please sign in to comment.