Skip to content

Commit

Permalink
fix: set variables for oldValue and newValue
Browse files Browse the repository at this point in the history
  • Loading branch information
kunfang98927 committed Jul 12, 2024
1 parent 19895b8 commit 177785b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Editor/CressTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ export class CressTable {
this.table.addHook(hook, (source) => {
if (source != 'loadData') {
if (hook === 'afterChange') {
if (source[0][2] !== source[0][3]) setSavedStatus(false);
const oldValue = source[0][2];
const newValue = source[0][3];
if (oldValue !== newValue) setSavedStatus(false);
} else {
setSavedStatus(false);
}
Expand Down

0 comments on commit 177785b

Please sign in to comment.