Knect-Dev / Knect-Dev-Frontend

Front End for Knect Dev Application
https://www.knect.dev/home
MIT License
0 stars 0 forks source link

Form Fix, adding new job #80

Closed daniel-jacks closed 2 years ago

daniel-jacks commented 2 years ago

edits adding a job so that when a new job is POSTed to the database, the form will auto close

daniel-jacks commented 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.

netlify[bot] commented 2 years ago

✅ 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/