diff --git a/web/src/components/dialog/PickerItem.svelte b/web/src/components/dialog/PickerItem.svelte index 496801ed..379e2c66 100644 --- a/web/src/components/dialog/PickerItem.svelte +++ b/web/src/components/dialog/PickerItem.svelte @@ -14,17 +14,12 @@ let imageLoaded = false; - let itemType = item.type; - if (!itemType) { - itemType = "photo" - } + $: itemType = item.type ?? "photo";