Update plugins/scaffolder/src/components/MultistepJsonForm/MultistepJsonForm.tsx
Co-authored-by: Andrea Falzetti <andreafalzetti@users.noreply.github.com> Signed-off-by: chicoribas <chico.bribas@gmail.com>
This commit is contained in:
committed by
chicoribas
parent
fe10391180
commit
49d814226c
@@ -52,7 +52,7 @@ type Props = {
|
||||
export function getUiSchemasFromSteps(steps: Step[]): UiSchema[] {
|
||||
const uiSchemas: Array<UiSchema> = [];
|
||||
steps.forEach(step => {
|
||||
if (!step.schema || !step.schema.properties) return;
|
||||
if (!step.schema || !step.schema.properties) return [];
|
||||
|
||||
const schemaProps = step.schema.properties as JsonObject;
|
||||
for (const key in schemaProps) {
|
||||
|
||||
Reference in New Issue
Block a user