Skip to content
Snippets Groups Projects
Commit 1b239466 authored by Ron Lucke's avatar Ron Lucke
Browse files

fix #2198

Closes #2198

Merge request studip/studip!1424
parent 7602ce0b
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
......@@ -116,9 +116,20 @@ export default {
return;
}
await this.loadStructuralElement(id);
this.canVisit = this.structuralElementLastMeta['can-visit'];
this.selected = this.structuralElementById({ id });
this.structureLoadingState = 'loading';
try {
await this.loadStructuralElement(id);
} catch (error) {
this.loadingErrorStatus = error.status;
this.structureLoadingState = 'error';
return;
}
this.structureLoadingState = 'done';
this.$nextTick( () => {
this.canVisit = this.structuralElementLastMeta['can-visit'];
this.selected = this.structuralElementById({ id });
});
},
},
async mounted() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment