diff --git a/src/components/main/NewItemModal.js b/src/components/main/NewItemModal.js index 02e48919a..4ca15f287 100644 --- a/src/components/main/NewItemModal.js +++ b/src/components/main/NewItemModal.js @@ -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);