Skip to content

Commit 5875bb3

Browse files
committed
fix(demo): fixes tsc and lint errors
Signed-off-by: Pamfilos Fokianos <pamfilosf@gmail.com>
1 parent 7389d68 commit 5875bb3

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/admin/components/SchemaCodeEditor.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ import {
55
import { useDispatch } from "react-redux";
66
import CodeEditor from "../../utils/CodeEditor";
77

8-
const SchemaCodeEditor = ({ valueType, value, height, lang, isReadOnly }) => {
8+
const SchemaCodeEditor = ({
9+
valueType = "json",
10+
value = "",
11+
height = "320px",
12+
lang = "json",
13+
isReadOnly = true,
14+
}) => {
915
const dispatch = useDispatch();
1016

1117
const _onSchemaChange = (data) => {

src/admin/components/SchemaTree.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ const SchemaTree = () => {
4848
// Memoize transformed schema - only recompute when schema changes
4949
const transformedSchema = useMemo(
5050
() => customizationContext.transformSchema(schema),
51-
[customizationContext, schema],
51+
[customizationContext, schema]
5252
);
5353

5454
// Memoize cleaned uiSchema - only recompute when uiSchema changes
5555
const cleanedUiSchema = useMemo(
5656
() => removeUiWidget(uiSchema),
57-
[removeUiWidget, uiSchema],
57+
[removeUiWidget, uiSchema]
5858
);
5959

6060
return (

0 commit comments

Comments
 (0)