Commit 5d453ce
Fix null reference error in preview mode
- Add null check for node in useMemo before accessing node.data
- Update early return condition to check both open and node
- Fixes "can't access property 'data', o is null" error
Co-authored-by: mikebarkmin <2592379+mikebarkmin@users.noreply.github.com>1 parent 0ff29e7 commit 5d453ce
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments