Skip to content
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

web: fix not setting embargo description #40

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

tommilligan
Copy link
Collaborator

Bug was caused by the dialogue closing and setting the message to "" before the request to store the embargo to api fired.

This PR reworks the useSetCommitState hook to take advantage of useMutation's TVariables rather than passing the description in to the initial hook.

This seems like a better way all round, it would probably be good to see if the other stored data can be refactored in the same way, but not for now!

@tommilligan tommilligan added the bug Something isn't working label Oct 16, 2023
@tommilligan tommilligan self-assigned this Oct 16, 2023
@tommilligan tommilligan merged commit 6ea9661 into master Oct 16, 2023
1 check passed
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.

None yet

2 participants