LSP: bugfix adding triggers when no triggers set
This commit is contained in:
parent
fcffcc688f
commit
b2f5676ca7
2 changed files with 23 additions and 20 deletions
|
@ -4904,6 +4904,9 @@ var UI = {
|
|||
params: saveas.params,
|
||||
'default': saveas['default']
|
||||
};
|
||||
if (!("triggers" in mist.data.config)) {
|
||||
mist.data.config.triggers = {};
|
||||
}
|
||||
if (!(saveas.triggeron in mist.data.config.triggers)) {
|
||||
mist.data.config.triggers[saveas.triggeron] = [];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue