Skip to content

Commit

Permalink
show plugin editor when no tab link is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
infacc committed Jul 3, 2023
1 parent 01bf1bb commit e55a407
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ export class PluginFilterEditorComponent implements OnInit {
filterString: string = "{}";
filterControl = new FormControl(this.filterString, [Validators.required, Validators.minLength(2)]); // TODO: Add validator for JSON

filterObject: any = null;
filterObject: any = {};

constructor(private registry: PluginRegistryBaseService) { }

ngOnInit(): void {
if (this.tabLink == null) {
console.warn("No tab link provided to plugin filter node component");
return;
}
this.registry.getByApiLink<TemplateTabApiObject>(this.tabLink).then(response => {
Expand Down

0 comments on commit e55a407

Please sign in to comment.