diff --git a/.changeset/olive-berries-poke.md b/.changeset/olive-berries-poke.md index b06a8b9f17..355828acbb 100644 --- a/.changeset/olive-berries-poke.md +++ b/.changeset/olive-berries-poke.md @@ -1,5 +1,5 @@ --- -'@backstage/plugin-scaffolder-react': major +'@backstage/plugin-scaffolder-react': patch --- Fix for next version of template scaffolder for the steps without properties diff --git a/plugins/scaffolder-react/src/next/hooks/useTemplateSchema.ts b/plugins/scaffolder-react/src/next/hooks/useTemplateSchema.ts index e9f7382e8d..df70df965c 100644 --- a/plugins/scaffolder-react/src/next/hooks/useTemplateSchema.ts +++ b/plugins/scaffolder-react/src/next/hooks/useTemplateSchema.ts @@ -62,7 +62,7 @@ export const useTemplateSchema = ( // Title is rendered at the top of the page, so let's ignore this from jsonschemaform title: undefined, properties: Object.fromEntries( - Object.entries((step.schema.properties || []) as JsonObject).filter( + Object.entries((step.schema?.properties ?? []) as JsonObject).filter( ([key]) => { const stepFeatureFlag = step.uiSchema[key]?.['ui:backstage']?.featureFlag;