fix errors when navigated away from a layout that uses toolbar
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user