-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unnecessary API Calls in Assets Update Page #9189
Comments
@Jacobjeevan I'd like to work on this issue |
Go ahead and see if you can convert the form in AssetCreate to use Form component (like in CreatePrescriptionForm.tsx) @nithish1018 |
Hi @Jacobjeevan , I would like to work on this issue. |
I see you have opened a PR, but please do not work on issues that have already been assigned to someone else. Moreover, your PR doesn't make use of the Form component as mentioned above. @nithish1018 how far along are you on this issue? |
I haven't started working on that issue, it's ok if someone wants to take it up |
Ok, reassigning to @rajku-dev since there's a PR open (but please don't do this again, thanks). |
There's a PR open (#8956) that modified Form component to have a dirty state, so that would take care of the original issue, once we switch this page to use form component. |
I'm sorry, didn't knew about that since i am new to open source. |
Hi @Jacobjeevan , I have completed wrapping the form inside |
Yea, but make sure you are changing the existing PR request rather than opening a new one. |
@Jacobjeevan I have updated #9192 with new commits. form_comp.mp4 |
Describe the bug
In Assets update page, the form is allowing users to raise a PUT API call even when there's no change in the data, the same thing is present in in Service History update too
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Update Button should be deactived when there's no change in the data
Screenshots
20241122-1349-40.8986411.mp4
Desktop
The text was updated successfully, but these errors were encountered: