mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
stringify Longtext
This commit is contained in:
@@ -32,7 +32,7 @@ interface Props {
|
||||
|
||||
const LongText = (props: Props) => {
|
||||
const { value, onSubmit } = props;
|
||||
const [text, setText] = useState(value ? value : "");
|
||||
const [text, setText] = useState(value ? JSON.stringify(value) : "");
|
||||
useEffect(() => {
|
||||
if (text !== value) setText(value);
|
||||
}, [value]);
|
||||
|
||||
Reference in New Issue
Block a user