Skip to content

Commit 9142f8b

Browse files
committed
fix(table): return Element and pull data into table again
1 parent d57d917 commit 9142f8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/components/Table/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const Table = <T extends TableData, K extends keyof T>({
6666
emptyState,
6767
}: TableProps<T, K>) => {
6868
if (!data || !data.length) {
69-
return emptyState;
69+
return emptyState || null;
7070
}
7171
return (
7272
<TableWrapper maxHeight={maxHeight}>

src/pages/Bugs/BugsTable/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const BugsTable = ({ campaignId }: { campaignId: number }) => {
1515
return (
1616
<Table
1717
columns={columns}
18-
data={[]}
18+
data={data}
1919
selectedRow={currentBugId ? currentBugId.toString() : null}
2020
onRowClick={(bug_id) => dispatch(selectBug({ bug_id }))}
2121
isSticky

0 commit comments

Comments
 (0)