Commit 08e3837
committed
fix: add null-safety for configData.moduleData access
Prevent crash when API is called before frontend sends CURRENT_STATUS
by using optional chaining (?.) on moduleData.find() call.
Fixes race condition during startup that caused:
TypeError: Cannot read properties of undefined (reading 'find')1 parent 9f0962b commit 08e3837
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
| 385 | + | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| |||
0 commit comments