Skip to content

Commit 589fbe8

Browse files
committed
fix: add getter and fix setter type to make jsonschema happy
1 parent 9818887 commit 589fbe8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/packages/block/block-type/components/block-type-card/block-type-card.element.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,20 @@ export class UmbBlockTypeCardElement extends UmbLitElement {
2424
href?: string;
2525

2626
@property({ type: String, attribute: false })
27-
public set iconFile(value: string | undefined) {
27+
public set iconFile(value: string) {
2828
value = transformServerPathToClientPath(value);
2929
if (value) {
3030
this.#init.then(() => {
31-
this._iconFile = this.#appUrl! + removeInitialSlashFromPath(value);
31+
this._iconFile = this.#appUrl + removeInitialSlashFromPath(value);
3232
});
3333
} else {
3434
this._iconFile = undefined;
3535
}
3636
}
37+
public get iconFile(): string | undefined {
38+
return this._iconFile;
39+
}
40+
3741
@state()
3842
private _iconFile?: string | undefined;
3943

0 commit comments

Comments
 (0)