Commit 20981f9
committed
fix(demo): handle empty userAppSettingsFixturesData
- Add a check to ensure userAppSettingsFixturesData is not empty before cloning the first item
- Throw a StateError with a descriptive message if the list is empty
- This prevents potential runtime errors when initializing demo data for new users1 parent af305d7 commit 20981f9
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
| 90 | + | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
| |||
0 commit comments