mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 21:01:32 +08:00
refactor(ErrorBlock): simplify CodeViewer component usage
- Removed unnecessary props from CodeViewer in ErrorBlock for cleaner code and improved readability.
This commit is contained in:
parent
01c4777691
commit
7f87fb9c26
@ -164,12 +164,7 @@ ${t('error.stack')}: ${error.stack || 'N/A'}
|
||||
{error.requestBody && (
|
||||
<ErrorDetailItem>
|
||||
<ErrorDetailLabel>{t('error.requestBody')}:</ErrorDetailLabel>
|
||||
<CodeViewer
|
||||
className="source-view"
|
||||
language="json"
|
||||
expanded={true}
|
||||
// unwrapped={true}
|
||||
>
|
||||
<CodeViewer className="source-view" language="json" expanded>
|
||||
{JSON.stringify(error.requestBody, null, 2)}
|
||||
</CodeViewer>
|
||||
</ErrorDetailItem>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user