diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-05-05 11:11:25 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-05-05 11:11:25 +0530 |
commit | 740449446c133bacacf7c1319696c870cac3e64f (patch) | |
tree | 8942dfd6791e89bdb5f389496ffa06a91094e43b | |
parent | 5b630590d7e2f803007911e22f24444aefef541d (diff) |
Bug Fix: now the app won't crash if there are no saved items in DB
-rw-r--r-- | src/components/Form/Items/AddNewItemForm.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Form/Items/AddNewItemForm.js b/src/components/Form/Items/AddNewItemForm.js index 4b2397c..de524c7 100644 --- a/src/components/Form/Items/AddNewItemForm.js +++ b/src/components/Form/Items/AddNewItemForm.js @@ -85,7 +85,7 @@ const AddNewItemForm = (props) => { } }> <option key={enterItemNamePrompt}>{enterItemNamePrompt}</option> - {props.savedItems.map( + {props.savedItems === null || props.savedItems.map( (i) => { return <option key={i.Model}>{i.Model}</option> } |