From f056816239749ea7948babfbe968cdc86cb873ca Mon Sep 17 00:00:00 2001 From: FelisCatus Date: Sat, 14 Oct 2017 10:51:10 -0700 Subject: [PATCH] Ignore null values in quickSwitchProfiles. Fix #1248. --- omega-target/src/options.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/omega-target/src/options.coffee b/omega-target/src/options.coffee index f4ec9b1..30c80ba 100644 --- a/omega-target/src/options.coffee +++ b/omega-target/src/options.coffee @@ -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)