Skip to content

Commit

Permalink
fix eslint error + duplicate tranlation keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Šimon Macek authored and tmszi committed Nov 13, 2024
1 parent b149763 commit 0b72954
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
8 changes: 6 additions & 2 deletions src/composables/useRoutesMapVectorLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export const useRoutesMapVectorLayer = (
* @return {void}
*/
const addMapRoute = (feature: Feature): void => {
source.value && source.value.addFeature(feature);
if (source.value) {
source.value.addFeature(feature);
}
};

/**
Expand All @@ -29,7 +31,9 @@ export const useRoutesMapVectorLayer = (
*/
const clearMapRoutes = (): void => {
const source = vectorLayer && vectorLayer.value?.vectorLayer.getSource();
source && source.clear();
if (source) {
source.clear();
}
};

/**
Expand Down
2 changes: 0 additions & 2 deletions src/i18n/cs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,6 @@ titleBottomPanelNoRoutes = "Nejsou vybrané žádné cesty"
titleManualLogging = "Ruční záznam"
titleRoutes = "Cesty"
titleTabApp = "Automatický záznam"
titleAutomaticLogging = "Automatický záznam"
titleManualLogging = "Ruční záznam"
titleYourRoutes = "Vaše trasy"
tooltipDeleteDisable = "Ukončit mazání"
tooltipDeleteDisabled = "Vyberte cestu pro mazání"
Expand Down
2 changes: 0 additions & 2 deletions src/i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,6 @@ titleBottomPanelNoRoutes = "No selected routes"
titleManualLogging = "Manual logging"
titleRoutes = "Routes"
titleTabApp = "Automatic logging"
titleAutomaticLogging = "Automatic logging"
titleManualLogging = "Manual logging"
titleYourRoutes = "Your routes"
tooltipDeleteDisable = "Quit deleting"
tooltipDeleteEnable = "Delete points"
Expand Down
2 changes: 0 additions & 2 deletions src/i18n/sk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,6 @@ titleBottomPanelNoRoutes = "Žiadne vybrané trasy"
titleManualLogging = "Manuálne zadávanie"
titleRoutes = "Cesty"
titleTabApp = "Automatické nahrávanie"
titleAutomaticLogging = "Automatické zadávanie"
titleManualLogging = "Manuálne zadávanie"
titleYourRoutes = "Vaše trasy"
tooltipDeleteDisable = "Zastaviť mazanie"
tooltipDeleteEnable = "Odstrániť body trasy"
Expand Down

0 comments on commit 0b72954

Please sign in to comment.