avoid initializing without translation

This commit is contained in:
vcoppe
2024-06-19 23:05:54 +02:00
parent 8fdad928ac
commit 866e50d765

View File

@@ -17,8 +17,8 @@ export const brouterProfiles: { [key: string]: string } = {
railway: 'rail' railway: 'rail'
}; };
export const routingProfileSelectItem = writable({ export const routingProfileSelectItem = writable({
value: 'bike', value: '',
label: get(_)('toolbar.routing.activities.bike') label: ''
}); });
routingProfile.subscribe((value) => { routingProfile.subscribe((value) => {
if (value !== get(routingProfileSelectItem).value) { if (value !== get(routingProfileSelectItem).value) {