Merge pull request #13924 from kuangp/fix/dryRun/layouts

fix(dryRunEditor): render custom layouts
This commit is contained in:
Johan Haals
2022-09-30 13:55:15 +02:00
committed by GitHub
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}
/>
);
}