File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/lib/components/v2/workflow Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 77 import { formatMarkdown } from ' $lib/common/component_utilities' ;
88 import { tick } from ' svelte' ;
99 import { getJsonSchemaData } from ' fractal-components/jschema/jschema_initial_data' ;
10+ import { stripNullAndEmptyObjectsAndArrays } from ' fractal-components' ;
1011
1112 /**
1213 * @typedef {Object} Props
6768 const defaultData = {};
6869
6970 if (task .args_schema_parallel ) {
70- defaultData .args_parallel = getJsonSchemaData (task .args_schema_parallel , ' pydantic_v2' );
71+ defaultData .args_parallel = stripNullAndEmptyObjectsAndArrays (
72+ getJsonSchemaData (task .args_schema_parallel , ' pydantic_v2' )
73+ );
7174 }
7275
7376 if (task .args_schema_non_parallel ) {
74- defaultData .args_non_parallel = getJsonSchemaData (
75- task .args_schema_non_parallel ,
76- ' pydantic_v2'
77+ defaultData .args_non_parallel = stripNullAndEmptyObjectsAndArrays (
78+ getJsonSchemaData (task .args_schema_non_parallel , ' pydantic_v2' )
7779 );
7880 }
7981
You can’t perform that action at this time.
0 commit comments