Skip to content
Snippets Groups Projects
Commit 0ca5028b authored by Alexander Rose's avatar Alexander Rose
Browse files

StateObjectTracker, check if cell is undefined

parent 8a27719b
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,7 @@ export class StateObjectTracker<T extends StateObject> {
const changed = this.cell !== cell || this.version !== version;
this.cell = cell;
this.version = version || '';
this.data = cell.obj ? cell.obj.data as T : void 0 as any;
this.data = cell && cell.obj ? cell.obj.data as T : void 0 as any;
return changed;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment