-
This commit is contained in:
@ -13,7 +13,7 @@ export class SearchDrawerService {
|
|||||||
visible = false;
|
visible = false;
|
||||||
|
|
||||||
drawer: Subscription[] = [];
|
drawer: Subscription[] = [];
|
||||||
constructor() {}
|
constructor() { }
|
||||||
|
|
||||||
create(defaultValue: Record<string, any>, newSchema?: SFSchema, newUI?: SFUISchema) {
|
create(defaultValue: Record<string, any>, newSchema?: SFSchema, newUI?: SFUISchema) {
|
||||||
this.createEvent.next({ defaultValue, newSchema, newUI });
|
this.createEvent.next({ defaultValue, newSchema, newUI });
|
||||||
@ -22,5 +22,6 @@ export class SearchDrawerService {
|
|||||||
|
|
||||||
unsubscribe() {
|
unsubscribe() {
|
||||||
this.drawer.forEach(sub => sub.unsubscribe());
|
this.drawer.forEach(sub => sub.unsubscribe());
|
||||||
|
this.drawer = [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user