diff --git a/client/src/components/Form/Form.jsx b/client/src/components/Form/Form.jsx index 7898a5301..e6909fdad 100644 --- a/client/src/components/Form/Form.jsx +++ b/client/src/components/Form/Form.jsx @@ -112,8 +112,9 @@ class Form extends Root { ); }; - renderJSONInput = (name, label, onChange) => { + renderJSONInput = (name, label, onChange, textMode, options) => { const { formData, errors } = this.state; + const inputMode = textMode ? "text" : (formData.schemaType === "PROTOBUF" ? "protobuf" : "json") return (