Skip to content

Commit cd9d014

Browse files
committed
fix(platform): fix table checkbox hidden
1 parent b19c0b6 commit cd9d014

File tree

1 file changed

+3
-3
lines changed
  • packages/platform/src/app/components/table

1 file changed

+3
-3
lines changed

packages/platform/src/app/components/table/Table.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export function AppTable<T = any>(props: AppTableProps<T>): JSX.Element | null {
233233

234234
return (
235235
<DCard key={id} className="mb-3">
236-
{(titleIndex !== -1 || aColumns[0].checkbox) && (
236+
{(titleIndex !== -1 || columns[0].checkbox) && (
237237
<DCard.Header
238238
className="app-table__card-header"
239239
dAction={
@@ -280,7 +280,7 @@ export function AppTable<T = any>(props: AppTableProps<T>): JSX.Element | null {
280280
}
281281
>
282282
{(() => {
283-
const checkbox: any = aColumns[0].checkbox ? aColumns[0].td : false;
283+
const checkbox: any = columns[0].checkbox ? columns[0].td : false;
284284
const content = titleIndex !== -1 && columns[titleIndex].td;
285285

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

0 commit comments

Comments
 (0)