diff --git a/webclient/src/Storage.js b/webclient/src/Storage.js index 1f08d54..7e43328 100644 --- a/webclient/src/Storage.js +++ b/webclient/src/Storage.js @@ -47,7 +47,6 @@ function EditStorage(props) { const [loading, setLoading] = useState(false); const [success, setSuccess] = useState(false); const { id } = useParams(); - const history = useHistory(); const handleSubmit = (e) => { if (loading) return; @@ -69,25 +68,11 @@ function EditStorage(props) { }); }; - const saveAndNext = (e) => { - e.preventDefault(); - - handleSubmit(e) - .then(res => { - setStorage(false); - history.push('/storage/' + (parseInt(id) + 1)); - }); - }; - return (
Edit Storage {storage.shelf_id}
- - Save and edit next - -