diff --git a/.changeset/soft-fans-hug.md b/.changeset/soft-fans-hug.md new file mode 100644 index 0000000000000..7f5f119dd20cf --- /dev/null +++ b/.changeset/soft-fans-hug.md @@ -0,0 +1,5 @@ +--- +'@rocket.chat/fuselage-ui-kit': patch +--- + +fix: pass missing BlockContext argument to renderTextObject in SectionBlock diff --git a/packages/fuselage-ui-kit/src/blocks/SectionBlock.tsx b/packages/fuselage-ui-kit/src/blocks/SectionBlock.tsx index be43eb7d937b2..44dcb911405d9 100644 --- a/packages/fuselage-ui-kit/src/blocks/SectionBlock.tsx +++ b/packages/fuselage-ui-kit/src/blocks/SectionBlock.tsx @@ -1,5 +1,5 @@ import { Box, Flex, Grid, GridItem } from '@rocket.chat/fuselage'; -import type * as UiKit from '@rocket.chat/ui-kit'; +import * as UiKit from '@rocket.chat/ui-kit'; import type { ReactElement } from 'react'; import { memo, useMemo } from 'react'; @@ -28,7 +28,7 @@ const SectionBlock = ({ className, block, surfaceRenderer }: SectionBlockProps): {text && ( - {surfaceRenderer.renderTextObject(text, 0)} + {surfaceRenderer.renderTextObject(text, 0, UiKit.BlockContext.NONE)} )} {fields && }