Skip to content

Commit

Permalink
Close preset select modal on create open
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveMicroNova committed Jan 16, 2025
1 parent 9ed8b27 commit 7e01cfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/PresetsModal/PresetsModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const PresetsModal = ({ onClose }) => {
<div className="presets-modal-header">Select Preset</div>
<div className="presets-modal-body">
<List>{presetItems}</List>
<RectangularAddButton onClick={() => {setCreateModalOpen(true);}} />
<RectangularAddButton onClick={() => {setCreateModalOpen(true); onClose();}} />
{ createModalOpen && <CreatePresetModal onClose={() => {setCreateModalOpen(false);}} /> }
</div>
</Card>
Expand Down

0 comments on commit 7e01cfd

Please sign in to comment.