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

Fix creating/editing a volume task type #5532

Merged
merged 5 commits into from
Jun 1, 2021

Conversation

philippotto
Copy link
Member

@philippotto philippotto commented May 31, 2021

This PR fixes a regression which was introduced in 61d3bee. Even though, a volume task type doesn't really need settings, such as for soma clicking, the task type format still requires this (according to front-end as well as back-end types). In earlier versions, we simply hid the form fields but still maintained their values. I restored this behavior with this PR.

URL of deployed dev instance (used for testing):

  • https://___.webknossos.xyz

Steps to test:

  • create a volume task type (didn't work before)
  • edit a volume task type and save (even without doing any changes, this failed)

Issues:


Copy link
Member

@daniel-wer daniel-wer left a comment

Choose a reason for hiding this comment

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

Thank you for investigating and fixing this. 👍

}
{({ getFieldValue }) => (
<div
style={{
Copy link
Member

Choose a reason for hiding this comment

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

I'd propose to add a comment so that this doesn't happen again in the future

Copy link
Member Author

Choose a reason for hiding this comment

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

Very good point 👍

@philippotto philippotto enabled auto-merge (squash) June 1, 2021 07:22
@philippotto philippotto merged commit 9dc61bb into master Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating/editing a volume task type fails
2 participants