File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/packages/block/block-type/components/block-type-card Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -24,16 +24,20 @@ export class UmbBlockTypeCardElement extends UmbLitElement {
24
24
href ?: string ;
25
25
26
26
@property ( { type : String , attribute : false } )
27
- public set iconFile ( value : string | undefined ) {
27
+ public set iconFile ( value : string ) {
28
28
value = transformServerPathToClientPath ( value ) ;
29
29
if ( value ) {
30
30
this . #init. then ( ( ) => {
31
- this . _iconFile = this . #appUrl! + removeInitialSlashFromPath ( value ) ;
31
+ this . _iconFile = this . #appUrl + removeInitialSlashFromPath ( value ) ;
32
32
} ) ;
33
33
} else {
34
34
this . _iconFile = undefined ;
35
35
}
36
36
}
37
+ public get iconFile ( ) : string | undefined {
38
+ return this . _iconFile ;
39
+ }
40
+
37
41
@state ( )
38
42
private _iconFile ?: string | undefined ;
39
43
You can’t perform that action at this time.
0 commit comments