Unverified Commit f14f1e55 authored by Derek's avatar Derek Committed by GitHub
Browse files

frontend: fix resolver schema data race condition (#903)

parent d8ac77b8
Showing with 3 additions and 1 deletion
+3 -1
......@@ -82,7 +82,9 @@ const SchemaResolver = ({ schema, expanded, onClick, submitHandler }: SchemaReso
});
const onChange = e => {
setData({ ...data, [e.target.name]: e.target.value });
setData(existing => {
return { ...existing, [e.target.name]: e.target.value };
});
};
return (
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment