diff --git a/frontend/src/lib/components/JobArgs.svelte b/frontend/src/lib/components/JobArgs.svelte index 68ca3c078f..ca861da9c5 100644 --- a/frontend/src/lib/components/JobArgs.svelte +++ b/frontend/src/lib/components/JobArgs.svelte @@ -66,46 +66,47 @@ ${Object.entries(args) >. {:else}
+
+ +
- - - {argLabel ?? 'Input'} - Value - - {#snippet headerAction()} -
- -
- {/snippet} - - + {#if argLabel} + + + {argLabel ?? 'Input'} + Value + + + {/if} {#if args && typeof args === 'object' && Object.keys(args ?? {}).length > 0} {#each Object.entries(args ?? {}).sort( (a, b) => a?.[0]?.localeCompare(b?.[0]) ) as [arg, value]} - {arg} - + {arg} + {/each} {:else if args && typeof args !== 'object'} - Argument is not an object (type: {typeof args}) + Argument is not an object (type: {typeof args}) {:else if args} - No arguments + No arguments {:else} - + - +