mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 00:26:34 +03:00
fix: error with immutable object spec (#2179)
This commit is contained in:
parent
cc9818ca41
commit
53c4f36fad
|
@ -34,7 +34,12 @@ export const RedocStandalone = function (props: RedocStandaloneProps) {
|
|||
|
||||
return (
|
||||
<ErrorBoundary>
|
||||
<StoreBuilder spec={spec} specUrl={specUrl} options={options} onLoaded={onLoaded}>
|
||||
<StoreBuilder
|
||||
spec={spec ? { ...spec } : undefined}
|
||||
specUrl={specUrl}
|
||||
options={options}
|
||||
onLoaded={onLoaded}
|
||||
>
|
||||
{({ loading, store }) =>
|
||||
!loading ? (
|
||||
<Redoc store={store!} />
|
||||
|
|
Loading…
Reference in New Issue
Block a user