From 465b3c4a26f8ce6ae0b7a35f4838b2e23b1c1654 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Fri, 18 Nov 2022 11:46:12 -0500 Subject: [PATCH] Changed to use the right handler (#3806) --- .../admin-ui/src/components/json-file-upload/FileUploadForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/admin-ui/src/components/json-file-upload/FileUploadForm.tsx b/apps/admin-ui/src/components/json-file-upload/FileUploadForm.tsx index 68a7a0f61b..94d60544ac 100644 --- a/apps/admin-ui/src/components/json-file-upload/FileUploadForm.tsx +++ b/apps/admin-ui/src/components/json-file-upload/FileUploadForm.tsx @@ -152,7 +152,7 @@ export const FileUploadForm = ({ code={fileUpload.value} language={language} height="128px" - onChange={(value) => setFileUpload({ ...fileUpload, value })} + onChange={handleTextOrDataChange} isReadOnly={!rest.allowEditingUploadedText} /> )}