feat: auto-load images when ItemForm opens with existing URL

This commit is contained in:
Rasmus Q
2026-03-16 13:47:10 +00:00
parent 7084f703dc
commit d63535ad1b

View File

@@ -100,6 +100,13 @@
onColorChange?.(item.id, color || '');
}
}
// Auto-load images when form opens with existing URL
$effect(() => {
if (linkUrl && linkUrl.startsWith('http')) {
scrapeImages(linkUrl);
}
});
</script>
<Card style={cardStyle} class="relative overflow-hidden">