Skip to content

Commit

Permalink
Fix bug when making an empty options-list
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad-Simso committed Nov 29, 2024
1 parent 96879e1 commit 698c9c6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ export function EditManualOptionsWithEditor({
};

const handleClose = () => {
setChosenOption(true);
if (component.options !== undefined) {
setChosenOption(true);
}

manualOptionsModalRef.current?.close();
};

return (
Expand Down

0 comments on commit 698c9c6

Please sign in to comment.