Skip to content

Commit

Permalink
fix: prevent profile select showing .DS_Store
Browse files Browse the repository at this point in the history
  • Loading branch information
MattLish committed Nov 11, 2021
1 parent 75ba08a commit e1b1012
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 67 deletions.
195 changes: 129 additions & 66 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/components/ProfileSelection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export default class ProfileSelection extends Vue {
IPCEvents.GET_PRESETS
)) as string[];
const userPreset = userPreferences.get(USER_PREFERENCE_KEYS.PRESET);
this.presets = presets.map((preset) => ({ text: preset, value: preset }));
this.presets = presets
.map((preset) => ({ text: preset, value: preset }))
.filter((preset) => preset.text !== ".DS_Store");
this.selectedPreset = userPreset
? this.presets.find((preset) => preset.value === userPreset) ??
Expand Down

0 comments on commit e1b1012

Please sign in to comment.