Incorporated feedback

Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
bnechyporenko
2023-03-01 11:16:29 +01:00
parent d9893263ba
commit 65342d3f1c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
@@ -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;