Skip to content

Commit 18e5b1b

Browse files
committed
fix: #267
1 parent e8c4145 commit 18e5b1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/value-decorators/Json.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Json = memo(({ obj, lines }: JsonProps) => {
99
const jsonState = JSON.stringify(obj, null, 4);
1010
const computedLines = lines ?? Math.max(10, (jsonState.match(/\n/g) || "").length + 1);
1111

12-
return <textarea className="textarea w-full" readOnly rows={computedLines} defaultValue={jsonState} />;
12+
return <textarea className="textarea w-full" readOnly rows={computedLines} value={jsonState} />;
1313
});
1414

1515
export default Json;

0 commit comments

Comments
 (0)