Skip to content

Commit d55f4ce

Browse files
avoid hiding table toolbar on hiding all columns
1 parent 58be61e commit d55f4ce

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

client/packages/lowcoder/src/comps/comps/tableComp/tableCompView.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,13 @@ export const TableCompView = React.memo((props: {
10441044
}
10451045

10461046
if (antdColumns.length === 0) {
1047-
return <EmptyContent text={trans("table.emptyColumns")} />;
1047+
return (
1048+
<div>
1049+
{toolbar.position === "above" && !hideToolbar && toolbarView}
1050+
<EmptyContent text={trans("table.emptyColumns")} />
1051+
{toolbar.position === "below" && !hideToolbar && toolbarView}
1052+
</div>
1053+
);
10481054
}
10491055

10501056
const hideScrollbar = !showHorizontalScrollbar && !showVerticalScrollbar;

0 commit comments

Comments
 (0)