Skip to content

CORE-2057 Fix Admin EditTool form#638

Merged
psarando merged 6 commits intocyverse-de:mainfrom
psarando:CORE-2057-admin-edit-tool-fix
Jun 13, 2025
Merged

CORE-2057 Fix Admin EditTool form#638
psarando merged 6 commits intocyverse-de:mainfrom
psarando:CORE-2057-admin-edit-tool-fix

Conversation

@psarando
Copy link
Member

This PR will fix a bug in the Admin EditTool form, where an admin attempted to edit a tool and a null tool error in the service facade prevented the PATCH request from being submitted.

The handleSubmit function was setting the formatted values in a toolSubmission state, then immediately calling updateCurrentTool or addNewTool mutation queries, which were trying to access that state, but the state values were not available yet.

This PR also includes other minor fixes, such as fixing warnings and the tool edit success announcement.

psarando added 6 commits June 12, 2025 17:41
When an admin attempted to edit a tool, a null tool error in the
service facade prevented the PATCH request from being submitted.

The `handleSubmit` function was setting the formatted values in a
`toolSubmission` state, then immediately calling `updateCurrentTool`
or `addNewTool` mutation queries, which were trying to access that
state, but the state values were not available yet.
@psarando psarando added the bug Something isn't working label Jun 13, 2025
@psarando
Copy link
Member Author

I'm going to merge this right away, but reviews are still welcome 🙇

@psarando psarando merged commit 212e8d8 into cyverse-de:main Jun 13, 2025
3 checks passed
@psarando psarando deleted the CORE-2057-admin-edit-tool-fix branch June 13, 2025 01:47
Copy link
Member

@slr71 slr71 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments