Changed to use the right handler (#3806)

This commit is contained in:
Erik Jan de Wit 2022-11-18 11:46:12 -05:00 committed by GitHub
parent a407aa5c8e
commit 465b3c4a26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,7 +152,7 @@ export const FileUploadForm = ({
code={fileUpload.value} code={fileUpload.value}
language={language} language={language}
height="128px" height="128px"
onChange={(value) => setFileUpload({ ...fileUpload, value })} onChange={handleTextOrDataChange}
isReadOnly={!rest.allowEditingUploadedText} isReadOnly={!rest.allowEditingUploadedText}
/> />
)} )}