This commit is contained in:
Karl Ludwig Weise
2025-09-25 15:50:05 +02:00
parent 18f9ec8da0
commit 6aefac8a02
2 changed files with 2 additions and 2 deletions
@@ -41,7 +41,7 @@
type Props = Omit<HTMLInputAttributes, "type" | "files"> & {
FallbackIcon: Component;
value: string;
value?: string;
aspectRatio?: number;
width?: number;
height?: number;
@@ -56,7 +56,7 @@
<Form.Control>
{#snippet children({ props })}
<Form.Label>{m["agents.add.fields.image.title"]()}</Form.Label>
<InputCroppedImageBlob {...props} FallbackIcon={ItemIcon} />
<InputCroppedImageBlob {...props} bind:value={$formData.image} FallbackIcon={ItemIcon} />
{/snippet}
</Form.Control>
<Form.FieldErrors />