Skip to content

Commit

Permalink
Make subscriptions protected
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-koehler authored Oct 10, 2024
1 parent 1ca3aa7 commit 481c14d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/angular/src/library/base.renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export class JsonFormsBaseRenderer<T extends UISchemaElement>
@Input() uischema: T;
@Input() schema: JsonSchema;
@Input() path: string;
subscriptions: Subscription = new Subscription();
protected subscriptions: Subscription = new Subscription();

public addSubscription(subscription: Subscription | Subscription[]) {
protected addSubscription(subscription: Subscription | Subscription[]) {
if (Array.isArray(subscription)) {
subscription.forEach((sub) => this.subscriptions.add(sub));
} else {
Expand Down

0 comments on commit 481c14d

Please sign in to comment.