Skip to content

Avoid sorting formik in place in scheduling tab - #1658

Open
Arnei wants to merge 1 commit into
opencast:r/20.xfrom
Arnei:fix-scheduling-formik-mutation
Open

Avoid sorting formik in place in scheduling tab#1658
Arnei wants to merge 1 commit into
opencast:r/20.xfrom
Arnei:fix-scheduling-formik-mutation

Conversation

@Arnei

@Arnei Arnei commented Aug 20, 2026

Copy link
Copy Markdown
Member

There is a validation function that is mutating formik arrays accidentally by sorting it. This should not happen, so the solution is to make shallow copies of the arrays, which should have no effect on the validity check.

How to test this

For a scheduled event, check that the scheduling tab in the event details still works as expected.

AI Usage

Claude Sonnet was used to find and rectify this issue.

@Arnei Arnei added the type:bug Something isn't working label Aug 20, 2026
There is a validation function that is mutating formik arrays
accidentally by sorting it. This should not happen,
so the solution is to make shallow copies of the arrays, which
should have no effect on the validity check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant