Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed Sep 26, 2024
1 parent 3943c63 commit 5130934
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ import { HuiTypedElementEditor } from "../hui-typed-element-editor";
@customElement("hui-heading-item-element-editor")
export class HuiHeadingEntityElementEditor extends HuiTypedElementEditor<EntityHeadingItemConfig> {
protected get configElementType(): string | undefined {
if (!this.value?.type) {
return "entity";
}

return this.value?.type;
return this.value?.type || "entity";
}

protected async getConfigElement(): Promise<
Expand Down

0 comments on commit 5130934

Please sign in to comment.