diff --git a/packages/desktop-client/src/components/spreadsheet/CellValue.tsx b/packages/desktop-client/src/components/spreadsheet/CellValue.tsx index 910336b42af..525b1fabdbd 100644 --- a/packages/desktop-client/src/components/spreadsheet/CellValue.tsx +++ b/packages/desktop-client/src/components/spreadsheet/CellValue.tsx @@ -3,6 +3,7 @@ import React, { type ComponentPropsWithoutRef, type ReactNode, type CSSProperties, + Children, } from 'react'; import { styles } from '../../style'; @@ -44,7 +45,7 @@ export function CellValue< const { fullSheetName } = useSheetName(binding); const sheetValue = useSheetValue(binding); - return children && React.Children.toArray(children).length ? ( + return children && Children.toArray(children).length ? ( <>{children({ type, name: fullSheetName, value: sheetValue })} ) : (