File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
plugins/document-resources/src/components Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 2020
2121 import { ComponentType } from ' svelte'
2222
23- export let value: IconProps
23+ export let value: IconProps | undefined
2424 export let size: IconSize
2525 export let iconWithEmoji: AnySvelteComponent | Asset | ComponentType | undefined = view .ids .IconWithEmoji
2626 export let defaultIcon: AnySvelteComponent | Asset | ComponentType = document .icon .Document
2727 </script >
2828
2929<Icon
3030 {size }
31- icon ={value .icon === iconWithEmoji && iconWithEmoji ? IconWithEmoji : value .icon ?? defaultIcon }
32- iconProps ={value .icon === iconWithEmoji && iconWithEmoji
33- ? { icon: value .color }
31+ icon ={value ? .icon === iconWithEmoji && iconWithEmoji ? IconWithEmoji : value ? .icon ?? defaultIcon }
32+ iconProps ={value ? .icon === iconWithEmoji && iconWithEmoji
33+ ? { icon: value ? .color }
3434 : {
35- fill: value .color !== undefined ? getPlatformColorDef (value .color , $themeStore .dark ).icon : ' currentColor'
35+ fill: value ? .color !== undefined ? getPlatformColorDef (value ? .color , $themeStore .dark ).icon : ' currentColor'
3636 }}
3737/>
You can’t perform that action at this time.
0 commit comments