Neeraj Hot Fix Unsaved Changes Prompt After Template Save#4817
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
|
Hi @Neeraj-Kondaveeti Untitled.mp4 |
|
Hi Neeraj, A snippet of the error: Is this variable for my frontend different from yours that might be causing the issue? |
Hi Paul, Thank you for testing this. The 404 suggests the frontend may not be reaching the correct backend endpoint. When you were checking this PR locally, was your backend running as well (not just the frontend)? In my local setup, the backend is running and the template endpoints respond correctly. If the backend isn’t running or the API endpoint is pointing elsewhere, that could explain the 404. Could you please try testing again by running the backend locally in parallel with the frontend and then attempt to save the template. Please let me know and I can help align the setup. |
|
Hi Neeraj, For the frontend it is running and output is : I have tried changing the frontend .env file parameter from REACT_APP_APIENDPOINT="https://api-staging.highestgood.com/api" to REACT_APP_APIENDPOINT="http://localhost:4500/api" Can you please suggest? |
|
Thank you all, merging! |




Description
Fixes an issue where the unsaved changes confirmation dialog continued to appear after saving a job form template, even when no further changes were made.
The dialog was being triggered because the form’s baseline state used to detect unsaved changes was not being reset after a successful template save.
Related PRS (if any):
This PR is a hot fix for #4414
This PR is frontend-only fix. No backend changes required.
Main changes explained:
JobFormbuilder.jsxto explicitly reset the form’s baseline state after template create/update actions.How to test:
npm installand...to run this PR locallyScreenshots or videos of changes:
Note:
This is a minimal hot-fix with no UI, API, or data model changes.
The update only aligns unsaved-change detection with actual persisted state.