Skip to content

Commit 377981f

Browse files
committed
fixed crash when saving configuration if PS action was not selected
fix #111
1 parent 1f3aa07 commit 377981f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,9 @@ class LabelPlusInput extends GenericUI {
750750

751751
let getOption = (opts: CustomOptions): CustomOptions | null => {
752752
opts.textReplace = (pnl.textReplaceCheckBox.value) ? pnl.textReplaceTextBox.text : "";
753-
opts.actionGroup = (pnl.runActionGroupCheckBox.value) ? pnl.runActionGroupList.selection.text : "";
753+
if (pnl.runActionGroupCheckBox.value && pnl.runActionGroupList.selection) {
754+
opts.actionGroup = pnl.runActionGroupList.selection.text;
755+
}
754756
opts.dialogOverlayLabelGroups = (pnl.dialogOverlayCheckBox.value)? pnl.overlayPnl.groupTextBox.text : "";
755757
if (pnl.overlayPnl.toleranceTextBox.text !== "") {
756758
opts.dialogOverlayTolerance = pnl.overlayPnl.toleranceTextBox.text;

0 commit comments

Comments
 (0)