mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-10 19:06: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 (
|
return (
|
||||||
<ErrorBoundary>
|
<ErrorBoundary>
|
||||||
<StoreBuilder spec={spec} specUrl={specUrl} options={options} onLoaded={onLoaded}>
|
<StoreBuilder
|
||||||
|
spec={spec ? { ...spec } : undefined}
|
||||||
|
specUrl={specUrl}
|
||||||
|
options={options}
|
||||||
|
onLoaded={onLoaded}
|
||||||
|
>
|
||||||
{({ loading, store }) =>
|
{({ loading, store }) =>
|
||||||
!loading ? (
|
!loading ? (
|
||||||
<Redoc store={store!} />
|
<Redoc store={store!} />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user