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'
};
export const routingProfileSelectItem = writable({
value: 'bike',
label: get(_)('toolbar.routing.activities.bike')
value: '',
label: ''
});
routingProfile.subscribe((value) => {
if (value !== get(routingProfileSelectItem).value) {