Merge pull request #6300 from backstage/freben/todo-err

This commit is contained in:
Himanshu Mishra
2021-07-02 09:10:07 +02:00
committed by GitHub
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 ? `${requestString}` : 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>
);