The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix #4160: fix upload image bug (#4734)
kikoleitao9364a584774a
diff --git a/packages/twenty-front/src/modules/activities/components/ActivityBodyEditor.tsx b/packages/twenty-front/src/modules/activities/components/ActivityBodyEditor.tsxindex c8ef2611fc0..2dcde447ee4 100644--- a/packages/twenty-front/src/modules/activities/components/ActivityBodyEditor.tsx+++ b/packages/twenty-front/src/modules/activities/components/ActivityBodyEditor.tsx@@ -1,7 +1,6 @@import { ClipboardEvent, useCallback, useMemo } from 'react';import { useApolloClient } from '@apollo/client';import { useCreateBlockNote } from '@blocknote/react';-import styled from '@emotion/styled';import { isArray, isNonEmptyString } from '@sniptt/guards';import { useRecoilCallback, useRecoilState } from 'recoil';import { Key } from 'ts-key-enum';@@ -33,11 +32,6 @@ import { getFileType } from '../files/utils/getFileType';import '@blocknote/react/style.css';-const StyledBlockNoteStyledContainer = styled.div`- height: 100%;- width: 100%;-`;-type ActivityBodyEditorProps = {activityId: string;fillTitleFromBody: boolean;@@ -388,14 +382,12 @@ export const ActivityBodyEditor = ({};return (- <StyledBlockNoteStyledContainer onClick={() => editor.focus()}>- <BlockEditor- onFocus={handleBlockEditorFocus}- onBlur={handlerBlockEditorBlur}- onPaste={handleImagePaste}- onChange={handleEditorChange}- editor={editor}- />- </StyledBlockNoteStyledContainer>+ <BlockEditor+ onFocus={handleBlockEditorFocus}+ onBlur={handlerBlockEditorBlur}+ onPaste={handleImagePaste}+ onChange={handleEditorChange}+ editor={editor}+ />);};