File tree Expand file tree Collapse file tree
plugins/bulk-import/src/components/PreviewFile Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments