mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 06:38:17 +00:00
doing correct comparison to find page to delete (#3754)
This commit is contained in:
@ -69,7 +69,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
deletePage(id) {
|
deletePage(id) {
|
||||||
const selectedSection = this.sections.find(s => s.isSelected);
|
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);
|
deleteNotebookEntries(this.openmct, this.domainObject, selectedSection, page);
|
||||||
|
|
||||||
const selectedPage = this.pages.find(p => p.isSelected);
|
const selectedPage = this.pages.find(p => p.isSelected);
|
||||||
|
Reference in New Issue
Block a user