[Notebook] can not add snapshots to default notebook #3530 (#3531)

This commit is contained in:
Nikhil 2020-11-20 13:40:59 -08:00 committed by GitHub
parent 6fd8f6cd43
commit 13fe7509de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ export default {
this.openmct.menus.showMenu(x, y, notebookTypes);
},
snapshot(notebook) {
snapshot(notebookType) {
this.$nextTick(() => {
const element = document.querySelector('.c-overlay__contents')
|| document.getElementsByClassName('l-shell__main-container')[0];
@ -104,7 +104,7 @@ export default {
openmct: this.openmct
};
this.notebookSnapshot.capture(snapshotMeta, notebook.type, element);
this.notebookSnapshot.capture(snapshotMeta, notebookType, element);
});
},
setDefaultNotebookStatus() {