Incorporated feedback
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user