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
@@ -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>
);