Skip to content

Commit 84ce1b4

Browse files
committed
fix: prevent value loss when updating cells without value in diff
1 parent 02d9587 commit 84ce1b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/src/lib/sheet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,7 @@ export class Sheet implements UserSheet {
16661666

16671667
let next: Record<string, any> = { ...diff[address] };
16681668

1669-
if (formulaIdentify) {
1669+
if (formulaIdentify && 'value' in next) {
16701670
const formulaEnabled = next.formulaEnabled ?? current?.formulaEnabled ?? true;
16711671
if (formulaEnabled) {
16721672
this.clearDependencies(id);

0 commit comments

Comments
 (0)