From b042d9098d337b2e1c13c9a5293659ad5fcbc523 Mon Sep 17 00:00:00 2001 From: Jamie V Date: Fri, 12 Mar 2021 15:49:58 -0800 Subject: [PATCH] doing correct comparison to find page to delete (#3754) --- src/plugins/notebook/components/PageCollection.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/notebook/components/PageCollection.vue b/src/plugins/notebook/components/PageCollection.vue index f0ce443804..2734d20db1 100644 --- a/src/plugins/notebook/components/PageCollection.vue +++ b/src/plugins/notebook/components/PageCollection.vue @@ -69,7 +69,7 @@ export default { methods: { deletePage(id) { const selectedSection = this.sections.find(s => s.isSelected); - const page = this.pages.find(p => p.id !== id); + const page = this.pages.find(p => p.id === id); deleteNotebookEntries(this.openmct, this.domainObject, selectedSection, page); const selectedPage = this.pages.find(p => p.isSelected);