@autobusal/operator-routes 1.3.0 → 1.3.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 +8 -0
- package/Transiting/Manage.tsx +9 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.3.1] - 2026-08-07
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **Transiting country select no longer defaults to Afghanistan.** `value`
|
|
8
|
+
was `0`, so submitting without touching the field added the first country
|
|
9
|
+
in the list to the route's transit list.
|
|
10
|
+
|
|
3
11
|
## 1.3.0
|
|
4
12
|
|
|
5
13
|
**The operator's own notice windows.**
|
package/Transiting/Manage.tsx
CHANGED
|
@@ -85,7 +85,15 @@ const Manage = ({ url, t }: Props): JSX.Element => {
|
|
|
85
85
|
name: 'country_id',
|
|
86
86
|
type: 'select',
|
|
87
87
|
values: filterCountries(data?.transiting ?? [], CountriesData),
|
|
88
|
-
|
|
88
|
+
/*
|
|
89
|
+
* Edited: Ferjolt Ozuni - Date: 2026-08-07
|
|
90
|
+
* `value: 0` matches no country, so this opened showing the first
|
|
91
|
+
* one - and submitting without touching it added THAT country to
|
|
92
|
+
* the route's transit list. An empty value plus a placeholder
|
|
93
|
+
* makes the operator pick.
|
|
94
|
+
*/
|
|
95
|
+
placeholder: t('routes_order.step5.billing.country_choose', { ns: 'common' }),
|
|
96
|
+
value: '',
|
|
89
97
|
rules: 'required'
|
|
90
98
|
}] }
|
|
91
99
|
fetching={ isFetching }
|