Skip to content

Commit 2aa88ad

Browse files
authored
fix(bulk-import): fix runtime error on click of Preview PR (#625)
1 parent ac5c4e5 commit 2aa88ad

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-bulk-import': patch
3+
---
4+
5+
fixes runtime error on click of Preview PR in localhost/dev mode

workspaces/bulk-import/plugins/bulk-import/src/components/PreviewFile/PreviewPullRequestForm.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ export const PreviewPullRequestForm = ({
268268
</Box>
269269

270270
<TextField
271+
// eslint-disable-next-line no-restricted-syntax
272+
id={`${approvalTool} title`.toLowerCase().split(' ').join('-')}
271273
label={`${approvalTool} title`}
272274
placeholder="Add Backstage catalog entity descriptor files"
273275
variant="outlined"
@@ -282,6 +284,8 @@ export const PreviewPullRequestForm = ({
282284
/>
283285

284286
<TextField
287+
// eslint-disable-next-line no-restricted-syntax
288+
id={`${approvalTool} body`.toLowerCase().split(' ').join('-')}
285289
label={`${approvalTool} body`}
286290
placeholder="A describing text with Markdown support"
287291
margin="normal"
@@ -301,6 +305,7 @@ export const PreviewPullRequestForm = ({
301305
</Box>
302306

303307
<TextField
308+
id="component-name"
304309
label="Name of the created component"
305310
placeholder="Component Name"
306311
margin="normal"

0 commit comments

Comments
 (0)