Skip to content
Snippets Groups Projects
Commit 4be60969 authored by L. Ellenbeck's avatar L. Ellenbeck
Browse files

Fix: load resource on edit page (coscine/issues#2853)

parent 5474f143
No related branches found
No related tags found
2 merge requests!369Chore 2.12.3,!348Fix: load resource on edit page (coscine/issues#2853)
Pipeline #1303760 passed with warnings
......@@ -302,6 +302,13 @@ export default defineComponent({
methods: {
async fetchData() {
if (this.project?.id && this.resource?.id) {
// Load resource
await this.resourceStore.retrieveResource(
this.project?.id,
this.resource?.id,
);
}
// Load Project Visibilities if not present
if (this.projectStore.visibilities === null) {
await this.projectStore.retrieveVisibilities();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment