aboutsummaryrefslogtreecommitdiff
path: root/src/components/Form/Items
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-05-05 11:11:25 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-05-05 11:11:25 +0530
commit740449446c133bacacf7c1319696c870cac3e64f (patch)
tree8942dfd6791e89bdb5f389496ffa06a91094e43b /src/components/Form/Items
parent5b630590d7e2f803007911e22f24444aefef541d (diff)
Bug Fix: now the app won't crash if there are no saved items in DB
Diffstat (limited to 'src/components/Form/Items')
-rw-r--r--src/components/Form/Items/AddNewItemForm.js2
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>
}