fix(restrictedNotebook): fix issue causing sections not to update on lock

This commit is contained in:
Jesse Mazzella 2023-07-21 12:21:58 -07:00
parent 9a946bcd6f
commit e0fc2ae043

View File

@ -476,7 +476,6 @@ export default {
{
label: 'Lock Page',
callback: () => {
let sections = this.getSections();
this.selectedPage.isLocked = true;
// cant be default if it's locked
@ -488,7 +487,7 @@ export default {
this.selectedSection.isLocked = true;
}
mutateObject(this.openmct, this.domainObject, 'configuration.sections', sections);
mutateObject(this.openmct, this.domainObject, 'configuration.sections', this.sections);
if (!this.domainObject.locked) {
mutateObject(this.openmct, this.domainObject, 'locked', true);
@ -708,9 +707,6 @@ export default {
getSection(id) {
return this.sections.find((s) => s.id === id);
},
getSections() {
return this.domainObject.configuration.sections || [];
},
getSearchResults() {
if (!this.search.length) {
return [];