Skip to content

Commit ceaecd2

Browse files
committed
fix: fix reset on language change
1 parent 5cd0074 commit ceaecd2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/app/components/Editor.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ const checkWarnings = async (values: PublicCode) => {
6565
};
6666

6767
const resolver: Resolver<PublicCode | PublicCodeWithDeprecatedFields> = async (values) => {
68+
console.log(values)
6869
const res = await validatorFn(values as PublicCode);
6970

7071
if (res.errors.length === 0)
@@ -373,6 +374,18 @@ export default function Editor() {
373374
required
374375
/>
375376
</Col>
377+
<Col>
378+
<EditorDescriptionInput<"documentation">
379+
fieldName="documentation"
380+
lang={lang}
381+
/>
382+
</Col>
383+
<Col>
384+
<EditorDescriptionInput<"apiDocumentation">
385+
fieldName="apiDocumentation"
386+
lang={lang}
387+
/>
388+
</Col>
376389
<Col>
377390
<EditorFeatures lang={lang} />
378391
</Col>

0 commit comments

Comments
 (0)