Component stack fixes
This commit is contained in:
@@ -14,7 +14,6 @@ export class ComponentGroup {
|
||||
private application: WebApplication
|
||||
changeObservers: any[] = []
|
||||
activeComponents: UuidString[] = []
|
||||
|
||||
|
||||
constructor(application: WebApplication) {
|
||||
this.application = application;
|
||||
@@ -86,6 +85,7 @@ export class ComponentGroup {
|
||||
*/
|
||||
public addChangeObserver(callback: () => void) {
|
||||
this.changeObservers.push(callback);
|
||||
callback();
|
||||
return () => {
|
||||
removeFromArray(this.changeObservers, callback);
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ export class Editor {
|
||||
if (matchingNote) {
|
||||
this.isTemplateNote = false;
|
||||
this.note = matchingNote;
|
||||
this._onNoteValueChange!(matchingNote, source);
|
||||
this._onNoteValueChange && this._onNoteValueChange!(matchingNote, source);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user