Fix error in error panel, and console warnings about DOM nesting pre inside p

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-07-01 14:21:29 +02:00
parent b0be185369
commit 47748c7e62
2 changed files with 7 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Fix error in error panel, and console warnings about DOM nesting pre inside p
@@ -76,7 +76,7 @@ export const ResponseErrorPanel = ({
<ListItemText
classes={{ secondary: classes.text }}
primary="Request"
secondary={request}
secondary={request ? `${request.method} ${request.url}` : undefined}
/>
<CopyTextButton text={requestString} />
</ListItem>
@@ -87,10 +87,9 @@ export const ResponseErrorPanel = ({
<ListItemText
classes={{ secondary: classes.text }}
primary="Full Error as JSON"
secondary={<CodeSnippet language="json" text={jsonString} />}
/>
<CopyTextButton text={jsonString} />
</ListItem>
<CodeSnippet language="json" text={jsonString} showCopyCodeButton />
</>
</ErrorPanel>
);