Commit fd177c9
chore: TypeError when deleting in zen (@byseif21) (monkeytypegame#7282)
* fix error from race condition `Cannot read properties of null (reading
'remove')` when deletion in zen mode, added null check.
The active word could already be removed when the debounced update runs,
which caused a null error
---------
Co-authored-by: Jack <[email protected]>1 parent a1240d3 commit fd177c9
1 file changed
+9
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
144 | 143 | | |
| 144 | + | |
| 145 | + | |
145 | 146 | | |
146 | | - | |
147 | | - | |
148 | 147 | | |
149 | 148 | | |
150 | 149 | | |
| |||
0 commit comments