From 740449446c133bacacf7c1319696c870cac3e64f Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Wed, 5 May 2021 11:11:25 +0530 Subject: Bug Fix: now the app won't crash if there are no saved items in DB --- src/components/Form/Items/AddNewItemForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components') 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) => { } }> - {props.savedItems.map( + {props.savedItems === null || props.savedItems.map( (i) => { return } -- cgit v1.2.3