Skip to content

Commit

Permalink
fix(platform): fix table checkbox hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
xiejay97 committed Jul 3, 2023
1 parent b19c0b6 commit cd9d014
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/platform/src/app/components/table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export function AppTable<T = any>(props: AppTableProps<T>): JSX.Element | null {

return (
<DCard key={id} className="mb-3">
{(titleIndex !== -1 || aColumns[0].checkbox) && (
{(titleIndex !== -1 || columns[0].checkbox) && (
<DCard.Header
className="app-table__card-header"
dAction={
Expand Down Expand Up @@ -280,7 +280,7 @@ export function AppTable<T = any>(props: AppTableProps<T>): JSX.Element | null {
}
>
{(() => {
const checkbox: any = aColumns[0].checkbox ? aColumns[0].td : false;
const checkbox: any = columns[0].checkbox ? columns[0].td : false;
const content = titleIndex !== -1 && columns[titleIndex].td;

return (
Expand All @@ -306,7 +306,7 @@ export function AppTable<T = any>(props: AppTableProps<T>): JSX.Element | null {
/>
</DCard.Content>
{(() => {
if (aActions && titleIndex === -1 && !aColumns[0].checkbox) {
if (aActions && titleIndex === -1 && !columns[0].checkbox) {
const actions = aActions.actions(data, index).filter((action) => !action.hidden);
if (actions.length === 0) {
return;
Expand Down

0 comments on commit cd9d014

Please sign in to comment.