Closed jsheunis closed 9 months ago
All modified lines are covered by tests :white_check_mark:
Comparison is base (
d25dcd2
) 86.19% compared to head (625afc2
) 86.19%. Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
A sneaky but very small addition to the PR is: 922fc67d6217c635e627a49e8978679c459b629e
In response to: https://github.com/psychoinformatics-de/sfb1451-projects-catalog/issues/31
This PR is in response to: https://github.com/psychoinformatics-de/sfb1451-projects-catalog/issues/33, which exists as a result of a regression introduced in https://github.com/datalad/datalad-catalog/pull/350/commits/d25dcd24e721dfad155b66e6031daa1c0b7abcee
This issue has in the past resulted in erratic tab selection, and it relates to a number of previous issues:
The new update discards the use of
$refs
for finding available tabs because of an issue with asynchronous loading of$root
, the dataset component and its subcomponents, and$refs
. It can happen that$refs
might or might not be defined at the time whencreated()
ormounted()
is called in the vue app life cycle. For a more useful description, see https://stackoverflow.com/questions/54355375/vue-js-refs-are-undefined-even-though-this-refs-shows-theyre-there.Instead, the new method determines the available tabs from the root component data, and accesses this list both on 'created()' and on 'beforeRouteUpdate()' in order to check the provided URL parameter against this list.