Skip to content

Commit 92be9b2

Browse files
committed
Add status to chart list table
1 parent a132bdd commit 92be9b2

File tree

1 file changed

+6
-0
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]/charts/components

1 file changed

+6
-0
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/charts/components/ChartsList.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const getAllCharts: any = graphql(`
5151
slug
5252
id
5353
}
54+
status
5455
}
5556
}
5657
}
@@ -289,6 +290,10 @@ const ChartsList: React.FC<ChartsListProps> = ({
289290
accessorKey: 'resource',
290291
header: 'Resource',
291292
},
293+
{
294+
accessorKey: 'status',
295+
header: 'Status',
296+
},
292297
{
293298
header: 'DELETE',
294299
cell: ({ row }: any) => (
@@ -325,6 +330,7 @@ const ChartsList: React.FC<ChartsListProps> = ({
325330
resource: item.resource?.name || '',
326331
dataset: item.dataset?.title || item.dataset?.id || '',
327332
typename: item.__typename,
333+
status: item.status || 'NA',
328334
}));
329335
};
330336

0 commit comments

Comments
 (0)