Commit b35cfea
committed
Remove error on starting batch accessibility map
We had this error when we started a new batch accessiblity map calculation:
TypeError: Cannot read properties of undefined (reading 'errors')
Change is to use optional chaining and provides an empty array as fallback for errors and warnings
which might not be yet present in the routingResult when we just create the job.1 parent b440e2c commit b35cfea
File tree
1 file changed
+2
-2
lines changed- packages/transition-frontend/src/components/forms/accessibilityMap
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
| 176 | + | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
0 commit comments