mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 21:54:53 +03:00
ts warning and errors with null
This commit is contained in:
parent
30b741e732
commit
fa7e39015b
|
@ -80,7 +80,7 @@ export class ConsoleViewer extends React.Component<ConsoleViewerProps, ConsoleVi
|
|||
credentials: 'include',
|
||||
redirect: 'manual',
|
||||
headers: myHeaders,
|
||||
body: (body) ? JSON.stringify(body) : null
|
||||
body: (body) ? JSON.stringify(body) : undefined
|
||||
});
|
||||
|
||||
const result = await fetch(request);
|
||||
|
|
Loading…
Reference in New Issue
Block a user