Skip to content

Commit

Permalink
fix: bug with zoneKey was dont saved
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGB committed Oct 14, 2024
1 parent 82c1a4b commit a3d1b9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/actions/dynamicSelector/DynamicSelectorSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const elementTypeDynamicSelectorSettings: ActionSetting = (
contextKeySetting.setDisabled(true);
contextKeySetting.settingEl.style.display = "none";
// Optional: Clear the value if the zone is not "context"
action.key = "";
action.zoneKey = "";
contextKeyTextInput.value = "";
}
});
Expand All @@ -59,10 +59,10 @@ export const elementTypeDynamicSelectorSettings: ActionSetting = (
.setDesc("The key to use in the context object.")
.addText((text) => {
text
.setPlaceholder("contextKey")
.setPlaceholder("key of the context object")
.setValue(dynamicSelectorElement.zoneKey || "")
.onChange(async (value) => {
action.key = value;
action.zoneKey = value;
});
});

Expand Down

0 comments on commit a3d1b9f

Please sign in to comment.