Skip to content

Commit 8c13579

Browse files
Vladislav AbrosimovVladislav Abrosimov
authored andcommitted
Comments on PR
1 parent e2f8c01 commit 8c13579

File tree

2 files changed

+2
-1
lines changed
  • packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Body

2 files changed

+2
-1
lines changed

packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Body/FormBodyItem/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export default function FormBodyItem({
4747
} else {
4848
dispatch(clearFormBodyKey(id));
4949
}
50+
// eslint-disable-next-line react-hooks/exhaustive-deps
5051
}, []);
5152

5253
if (

packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/Body/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ function Body({
364364
schemaObject={schemaVal}
365365
id={schemaKey}
366366
schema={schema}
367-
exampleValue={example.value[schemaKey]}
367+
exampleValue={example[schemaKey]}
368368
></FormBodyItem>
369369
</FormItem>
370370
);

0 commit comments

Comments
 (0)