This commit is contained in:
Taric Xin
2022-04-29 09:53:12 +08:00
parent ae6cb275b7
commit 8a16513dca

View File

@ -21,6 +21,7 @@ export class SearchDrawerComponent implements OnInit, AfterViewInit {
ngAfterViewInit(): void {} ngAfterViewInit(): void {}
ngOnInit(): void { ngOnInit(): void {
this.defaultValue = {};
this.service.createEvent.subscribe(({ defaultValue, newSchema, newUI }) => { this.service.createEvent.subscribe(({ defaultValue, newSchema, newUI }) => {
if (defaultValue) { if (defaultValue) {
this.defaultValue = defaultValue; this.defaultValue = defaultValue;