Closed daniel-jacks closed 2 years ago
This PR changes the functionality of the add button so that when a new item is successfully added to the database, the form is closed.
This PR also removes the trashcan Icon from the add form button, and the Trash Icon will now conditionally render based on if there is a selectedJobId or not. This is to avoid any errors that may have happened if someone were to click the Trash Icon, without there being an ID for the Trash Icon to pass to the database.
✅ Deploy Preview for peaceful-einstein-84c17d ready!
🔨 Explore the source changes: 25995a919fa830f6cbdd808bf35dec1e7b573b78
🔍 Inspect the deploy log: https://app.netlify.com/sites/peaceful-einstein-84c17d/deploys/6239fef9899af50008f14e4e
😎 Browse the preview: https://deploy-preview-80--peaceful-einstein-84c17d.netlify.app/
edits adding a job so that when a new job is POSTed to the database, the form will auto close