Skip to content

Commit

Permalink
PB-1046: set style to default if style is not found (e.g. babs)
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsunni committed Oct 16, 2024
1 parent c824e58 commit 281e2d9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ export default {
},
mounted() {
const iconSetNameToLookup = this.feature?.icon ? this.feature.icon.iconSetName : 'default'
this.currentIconSet = this.iconSets.find((iconSet) => iconSet.name === iconSetNameToLookup)
this.currentIconSet =
this.iconSets.find((iconSet) => iconSet.name === iconSetNameToLookup) ||
this.iconSets.find((iconSet) => iconSet.name === 'default')
},
methods: {
/**
Expand Down

0 comments on commit 281e2d9

Please sign in to comment.