Skip to content

Commit

Permalink
Merge branch 'main' into eui-v87.1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
kibanamachine authored Aug 16, 2023
2 parents e02a5b2 + 0d74544 commit 7b0e3a2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ export class AttributeService<
RefType extends SavedObjectEmbeddableInput = SavedObjectEmbeddableInput,
MetaInfo extends unknown = unknown
> {
private embeddableFactory;

constructor(
private type: string,
private toasts: NotificationsStart['toasts'],
Expand All @@ -75,6 +77,7 @@ export class AttributeService<
if (!factory) {
throw new EmbeddableFactoryNotFoundError(this.type);
}
this.embeddableFactory = factory;
}
}

Expand Down Expand Up @@ -186,7 +189,9 @@ export class AttributeService<
(input as ValType)[ATTRIBUTE_SERVICE_KEY].title
)}
showCopyOnSave={false}
objectType={this.type}
objectType={
this.embeddableFactory ? this.embeddableFactory.getDisplayName() : this.type
}
showDescription={false}
/>
);
Expand Down

0 comments on commit 7b0e3a2

Please sign in to comment.