@autobusal/operator-routes 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/Manage.tsx +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.6.1
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **A copied or reversed route could not be opened.** The manage page read `data.drivers.registered` with the optional chain stopping one level short, so a route whose `drivers` relation was null crashed the whole page. Guarded. (Platform audit RT-09e; the backend now also copies the drivers row.)
|
|
8
|
+
|
|
3
9
|
## 1.6.0
|
|
4
10
|
|
|
5
11
|
### Added
|
package/Manage.tsx
CHANGED
|
@@ -218,7 +218,7 @@ const Manage = ({ url, t }: Props): JSX.Element => {
|
|
|
218
218
|
label: t('operator_routes.manage.drivers', { ns: 'common' }),
|
|
219
219
|
name: 'drivers',
|
|
220
220
|
type: 'checkbox-list-all',
|
|
221
|
-
selected: data?.drivers
|
|
221
|
+
selected: data?.drivers?.registered ?? [],
|
|
222
222
|
values: drivers
|
|
223
223
|
}, {}, {
|
|
224
224
|
label: t('operator_routes.manage.searchable', { ns: 'common' }),
|