[CmdSwitches] Fix crashing on invalid preset
This commit is contained in:
parent
8965d3a490
commit
030fc2a044
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ const presets = {
|
|||
};
|
||||
|
||||
const combinePresets = (...keys) => Object.values(keys.reduce((acc, x) => {
|
||||
for (const cmd of presets[x].split(' ')) {
|
||||
for (const cmd of (presets[x] || '').split(' ')) {
|
||||
if (!cmd) continue;
|
||||
|
||||
const [ key, value ] = cmd.split('=');
|
||||
|
|
Loading…
Reference in a new issue