Skip to content

Commit

Permalink
Ignore null values in quickSwitchProfiles. Fix FelisCatus#1248.
Browse files Browse the repository at this point in the history
  • Loading branch information
FelisCatus committed Oct 14, 2017
1 parent e67cf66 commit f056816
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions omega-target/src/options.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ class Options
return unless quickSwitchProfiles?
seenQuickSwitchProfile = {}
validQuickSwitchProfiles = quickSwitchProfiles.filter (name) =>
return false if not name
key = OmegaPac.Profiles.nameAsKey(name)
return false if seenQuickSwitchProfile[key]
return false if not OmegaPac.Profiles.byName(name, @_options)
Expand Down

0 comments on commit f056816

Please sign in to comment.