Skip to content

Commit

Permalink
Update packages/desktop-client/src/components/spreadsheet/CellValue.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Julian Dominguez-Schatz <[email protected]>
  • Loading branch information
matt-fidd and jfdoming authored Jan 21, 2025
1 parent c613d29 commit bc9cdc8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function CellValue<
const { fullSheetName } = useSheetName(binding);
const sheetValue = useSheetValue(binding);

return children && children.length > 0 ? (
return children && React.Children.toArray(children).length ? (

Check warning on line 47 in packages/desktop-client/src/components/spreadsheet/CellValue.tsx

View workflow job for this annotation

GitHub Actions / lint

Using default React import is discouraged, please use named exports directly instead

Check failure on line 47 in packages/desktop-client/src/components/spreadsheet/CellValue.tsx

View workflow job for this annotation

GitHub Actions / typecheck

Argument of type '({ type, name, value, }: { type?: FormatType; name: string; value: Spreadsheets[SheetName][FieldName]; }) => ReactNode' is not assignable to parameter of type 'ReactNode | ReactNode[]'.
<>{children({ type, name: fullSheetName, value: sheetValue })}</>
) : (
<CellValueText
Expand Down

0 comments on commit bc9cdc8

Please sign in to comment.