Skip to content

Commit

Permalink
Fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wkramer committed Oct 24, 2024
1 parent a27cbbc commit d8b5d05
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/stores/userSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,11 @@ export const useUserSettingsStore = defineStore({
storage: window.localStorage,
pick: ['items'],
afterHydrate: (context) => {
['units.displayUnits', 'datum.verticalDatum'].forEach((id) => {
const item = context.store.items.find((item: UserSettingsItem) => item.id === id)
const specialActionItems = ['units.displayUnits', 'datum.verticalDatum']
specialActionItems.forEach((id) => {
const item = context.store.items.find(
(item: UserSettingsItem) => item.id === id,
)
if (item) {
context.store.add(item)
}
Expand Down

0 comments on commit d8b5d05

Please sign in to comment.