From 112184fb3b3baa0015981c6697156e0245b8d800 Mon Sep 17 00:00:00 2001 From: Aminejv Date: Mon, 1 Nov 2021 07:54:05 +0100 Subject: [PATCH] fix(GlobalCarousel/Jumpers/EditInfo): remove source field --- .../GlobalCarousel/jumpers/EditInfo.js | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/components/system/components/GlobalCarousel/jumpers/EditInfo.js b/components/system/components/GlobalCarousel/jumpers/EditInfo.js index 8212caf2..30817dde 100644 --- a/components/system/components/GlobalCarousel/jumpers/EditInfo.js +++ b/components/system/components/GlobalCarousel/jumpers/EditInfo.js @@ -45,18 +45,16 @@ const STYLES_EDIT_INFO_FORM = css` function UpdateFileForm({ file, isMobile, onClose }) { const formRef = React.useRef(); - const { getFieldProps, getFormProps, isSubmitting, values } = useForm({ + const { getFieldProps, getFormProps, isSubmitting } = useForm({ initialValues: { title: file?.name || "", - source: file?.source || "", description: file?.body || "", }, - onSubmit: async ({ title, source, description }) => { + onSubmit: async ({ title, description }) => { const response = await Actions.updateFile({ id: file.id, name: title, body: description, - source, }); Events.hasError(response); }, @@ -86,17 +84,6 @@ function UpdateFileForm({ file, isMobile, onClose }) { {...getFieldProps("title")} /> -
- - Source - - -
Description