Skip to content

Commit

Permalink
fix: apply type when resetting add item form
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia committed Jul 28, 2021
1 parent 506fb00 commit fdf0092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/main/NewItemModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const NewItemModal = ({ open, handleClose }) => {
postItem({ parentId, ...updatedPropertiesPerType[selectedItemType] });
setUpdatedPropertiesPerType({
...updatedPropertiesPerType,
[selectedItemType]: {},
[selectedItemType]: { type: selectedItemType },
});
// schedule button disable state reset AFTER end of click event handling
setTimeout(() => setConfirmButtonDisabled(false), DOUBLE_CLICK_DELAY_MS);
Expand Down

0 comments on commit fdf0092

Please sign in to comment.