Skip to content

Commit

Permalink
fix: error with immutable object spec (#2179)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVarchuk authored Oct 11, 2022
1 parent cc9818c commit 53c4f36
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/RedocStandalone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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!} />
Expand Down

0 comments on commit 53c4f36

Please sign in to comment.