Skip to content
Snippets Groups Projects
Commit ee400ea1 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Svelte 5 fixes

parent 385a6c85
Branches
No related tags found
No related merge requests found
......@@ -12,7 +12,12 @@
showErrors: boolean
}
let { embeddedParameter, errors, parameter, showErrors }: Props = $props()
let {
embeddedParameter,
errors,
parameter = $bindable(),
showErrors,
}: Props = $props()
interface InstantReferences {
instant: string
......
......@@ -71,10 +71,10 @@
| undefined = $state(undefined)
let message = $state("")
let originalParameter = { ...fileParameter! }
let parameter = $state(fileParameter!)
if (parameter.description === undefined) {
parameter.description = parameter.title
}
let parameter = $state({
...fileParameter!,
description: fileParameter!.description ?? fileParameter!.title,
})
let parameterErrors: { [key: string]: unknown } = $state({})
let reviewed = $state(false)
let saving = $state(false)
......@@ -311,7 +311,7 @@
<Label for="documentation">Documentation</Label>
<Textarea
name="documentation"
rows="5"
rows={5}
bind:value={parameter.documentation}
/>
{#if showErrors && parameterErrors.documentation !== undefined}
......@@ -446,7 +446,7 @@
<Textarea
name="message"
required={showErrors && username === undefined}
rows="5"
rows={5}
bind:value={message}
/>
{#if showErrors && errors.message !== undefined}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment