diff options
Diffstat (limited to 'src/components/Form/Items/RegisterItemForm.js')
-rw-r--r-- | src/components/Form/Items/RegisterItemForm.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/Form/Items/RegisterItemForm.js b/src/components/Form/Items/RegisterItemForm.js index b57db9f..6ad4c1f 100644 --- a/src/components/Form/Items/RegisterItemForm.js +++ b/src/components/Form/Items/RegisterItemForm.js @@ -45,11 +45,12 @@ const RegisterItemForm = (props) => { .then((res) => { console.log(res); props.setVisibility(false); + props.updateItemsList(); }) .catch((err) => { console.log(err); + alert("Something went wrong, please check the log by opening the console.") }); - props.updateItemsList(); } |