datalad / datalad-catalog

Create a user-friendly data catalog from structured metadata
https://datalad-catalog.netlify.app
MIT License
15 stars 12 forks source link

Remove code duplication in dataset-component javascript #371

Closed jsheunis closed 3 months ago

jsheunis commented 1 year ago

For created() and beforeRouteUpdate(), most of the code is duplicated. The reason for this is that I couldn't get it to work otherwise, given that they are both async components and at the time I probably didn't know enough about how to insert util functions into async functions.

There should be a way to deduplicate this code.