Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Oct 1, 2024
1 parent 9965ca2 commit 7b6b9b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/modal/cmd.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
});
return;
}
var config = $('.templateForm.' + $('.cmdTemplateAttr[data-l1key=templateName]').value().replace('.', '-')).getValues('.cmdTemplateAttr')[0];
var config = $('.templateForm.' + $('.cmdTemplateAttr[data-l1key=templateName]').value().replace('.', '-')).getValues('.cmdTemplateAttr')[0] || {};
config.template = $('.cmdTemplateAttr[data-l1key=templateName]').value();
$.ajax({
type: "POST",
Expand Down

0 comments on commit 7b6b9b1

Please sign in to comment.