Skip to content

Commit

Permalink
fix typing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
awildturtok committed Jan 2, 2024
1 parent 909734c commit cd2778b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/js/preview-v2/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ export default function Table({ data, queryData }: Props) {
const listType = cellType.match(/LIST\[(?<listtype>.*)\]/)?.groups?.[
"listtype"
];

const listTypeRenderFunction = getRenderFunction(listType);
if (!listType) {
const listTypeRenderFunction = getRenderFunction(listType);
return (value) =>
value ?
value ?
(value as Vector)
.toArray()
.map((listItem: string) =>
Expand All @@ -72,7 +72,7 @@ export default function Table({ data, queryData }: Props) {
)
.join(", ")
: null;

}
} else if (NUMBER_TYPES.includes(cellType)) {
return (value) => {
const num = parseFloat(value as string);
Expand Down

0 comments on commit cd2778b

Please sign in to comment.