Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Sep 14, 2023
1 parent 80cf6bf commit 6025636
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default {
!this.availableModes.includes(preset.mode.id)
) {
return false;
} else if (preset.style && preset.style.bands){
} else if (preset.style && preset.style.bands) {
if (preset.mode.id === 2) {
// Channel compositing, compare to num channels
if (this.imageMetadata.IndexRange &&
Expand Down Expand Up @@ -104,17 +104,17 @@ export default {
}
if (this.liConfig.imageFramePresets) {
this.folderPresets = this.liConfig.imageFramePresets.filter(this.presetApplicable);
if(this.liConfig.imageFramePresetDefaults) {
this.liConfig.imageFramePresetDefaults.every(({ name }) => {
const presetMatch = this.folderPresets.find((p) => p.name === name)
if (this.liConfig.imageFramePresetDefaults) {
this.liConfig.imageFramePresetDefaults.every(({name}) => {
const presetMatch = this.folderPresets.find((p) => p.name === name);
if (presetMatch) {
// found applicable preset in defaults list
// set as selected then return
this.selectedPreset = name;
return false;
}
return true;
})
});
}
}
return undefined;
Expand Down

0 comments on commit 6025636

Please sign in to comment.