fix(dryRunEditor): render custom layouts

Signed-off-by: Phil Kuang <pkuang@factset.com>
This commit is contained in:
Phil Kuang
2022-09-29 12:53:48 -04:00
parent aa0492c3b0
commit 8220f2fd83
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder': patch
---
Support custom layouts in dry run editor
@@ -207,7 +207,7 @@ export function TemplateEditorFormDirectoryEditorDryRun(
'setErrorText' | 'fieldExtensions' | 'layouts'
>,
) {
const { setErrorText, fieldExtensions = [] } = props;
const { setErrorText, fieldExtensions = [], layouts } = props;
const dryRun = useDryRun();
const directoryEditor = useDirectoryEditor();
@@ -246,6 +246,7 @@ export function TemplateEditorFormDirectoryEditorDryRun(
content={content}
data={data}
onUpdate={setData}
layouts={layouts}
/>
);
}