fix errors when navigated away from a layout that uses toolbar

This commit is contained in:
Deep Tailor
2020-03-27 10:15:09 -07:00
parent eedc0f13bc
commit 6b00af6ece
3 changed files with 12 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ export default {
return this.composition.load();
},
getSelectionContext() {
if (this.currentView.getSelectionContext) {
if (this.currentView && this.currentView.getSelectionContext) {
return this.currentView.getSelectionContext();
} else {
return { item: this.currentObject };