From e35576a1ebf362f8c6c26aec7574665c19b5d78b Mon Sep 17 00:00:00 2001 From: Guilhem Date: Tue, 27 Jan 2026 17:00:50 +0000 Subject: [PATCH] fix(frontend): bad overflow handling for flow schema in detail page (#7704) * Fix bad overflow handling for flow schema * nit --- .../(logged)/flows/get/[...path]/+page.svelte | 238 +++++++++--------- 1 file changed, 120 insertions(+), 118 deletions(-) diff --git a/frontend/src/routes/(root)/(logged)/flows/get/[...path]/+page.svelte b/frontend/src/routes/(root)/(logged)/flows/get/[...path]/+page.svelte index 014cf66fd7..35c440a008 100644 --- a/frontend/src/routes/(root)/(logged)/flows/get/[...path]/+page.svelte +++ b/frontend/src/routes/(root)/(logged)/flows/get/[...path]/+page.svelte @@ -541,129 +541,131 @@ {#snippet form()} {#if flow}
-
- {#if flow?.archived} - This flow was archived -
- {/if} +
+
+ {#if flow?.archived} + This flow was archived +
+ {/if} - {#if !emptyString(flow?.description)} -
- -
-
- {/if} - - {#if deploymentInProgress} -
- - - Deployment in progress - {#if deploymentJobId} - view job - {/if} - -
- {/if} - {#if flow.lock_error_logs && flow.lock_error_logs != ''} - -

This flow has not been deployed successfully because of the following errors:

- -
-
- {/if} - - {#if chatInputEnabled} - - - {:else} - {@const hasSchema = flow.schema && Object.keys(flow.schema.properties ?? {}).length > 0} - -
- {#if hasSchema || inputSelected} -
- { - savedInputsV2?.resetSelected() - }} - {inputSelected} - /> - - {#if hasSchema} - { - runForm?.setCode(JSON.stringify(args ?? {}, null, '\t')) - }} - /> - {/if} -
- {/if} - - {#if flow.schema?.prompt_for_ai !== undefined} - { - goto(`/flows/edit/${flow?.path}`) - }} - runnableType="flow" + {#if !emptyString(flow?.description)} +
+ - {/if} +
+
+ {/if} - + + + Deployment in progress + {#if deploymentJobId} + view job + {/if} + +
+ {/if} + {#if flow.lock_error_logs && flow.lock_error_logs != ''} + +

+ This flow has not been deployed successfully because of the following errors: +

+ +
+
+ {/if} + + {#if chatInputEnabled} + + -
+ {:else} + {@const hasSchema = + flow.schema && Object.keys(flow.schema.properties ?? {}).length > 0} + +
+ {#if hasSchema || inputSelected} +
+ { + savedInputsV2?.resetSelected() + }} + {inputSelected} + /> -
- - Edited by {flow.edited_by} - -
- {/if} + {#if hasSchema} + { + runForm?.setCode(JSON.stringify(args ?? {}, null, '\t')) + }} + /> + {/if} +
+ {/if} + + {#if flow.schema?.prompt_for_ai !== undefined} + { + goto(`/flows/edit/${flow?.path}`) + }} + runnableType="flow" + /> + {/if} + + +
+ +
+ + Edited by {flow.edited_by} + +
+ {/if} +
{#if !chatInputEnabled}