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(catalogue): sort of people involved has side effects #4361

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

mswertz
Copy link
Member

@mswertz mswertz commented Oct 15, 2024

To reproduce:

Ga naar https://data-catalogue-acc.molgeniscloud.org/catalogue/ssr-catalogue/STAGE/cohorts
click on ALSPAC in de lijst

Before: endless loop because of reactivity

After: should not result in endless loop because array is copied first

Copy link

sonarcloud bot commented Oct 15, 2024

@mswertz mswertz merged commit 9c16e48 into master Oct 15, 2024
5 of 6 checks passed
@mswertz mswertz deleted the fix/endless-loop branch October 15, 2024 11:43
@@ -509,7 +509,7 @@ if (route.params.catalogue) {
}

const peopleInvolvedSortedByRoleAndName = computed(() =>
resource.value.peopleInvolved?.sort((a, b) => {
[...(resource.value.peopleInvolved ?? [])].sort((a, b) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

adding e2e would have been nice, given the amount if pr's involved in the feature

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.

2 participants