Skip to content

Commit

Permalink
fix(frontend): fix nested shema editing (#5068)
Browse files Browse the repository at this point in the history
* fix(frontend) : handle flow card height

* fix(frontend): fix oneOf order

* fix(frontend): fix schema drawer update

* clean
  • Loading branch information
Guilhem-lm authored Jan 15, 2025
1 parent 87304cb commit df0faa2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion frontend/src/lib/components/LightweightArgInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@
),
$schema: '',
required: obj.required ?? [],
type: 'object'
type: 'object',
order: obj.order ?? []
}}
bind:args={value}
{disabled}
Expand Down
9 changes: 7 additions & 2 deletions frontend/src/lib/components/schema/FlowPropertyEditor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,12 @@
</div>
{#if oneOfSelected && schema.oneOf}
{@const idx = schema.oneOf.findIndex((obj) => obj.title === oneOfSelected)}
<EditableSchemaDrawer bind:schema={schema.oneOf[idx]} />
<EditableSchemaDrawer
bind:schema={schema.oneOf[idx]}
on:change={() => {
dispatch('schemaChange')
}}
/>
{/if}
{:else if type === 'object' && format !== 'resource-s3_object'}
<Tabs
Expand All @@ -313,7 +318,7 @@
<svelte:fragment slot="content">
<div class="pt-2">
<TabContent value="custom-object">
<EditableSchemaDrawer bind:schema />
<EditableSchemaDrawer bind:schema on:change={() => dispatch('schemaChange')} />
</TabContent>

<TabContent value="resource">
Expand Down

0 comments on commit df0faa2

Please sign in to comment.