mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 15:15:57 +08:00
fix: remove the second action button in the dashboards table (#3012)
This commit is contained in:
parent
20e71ec08a
commit
78da014b52
@ -75,8 +75,8 @@ function ListOfAllDashboard(): JSX.Element {
|
|||||||
errorMessage: '',
|
errorMessage: '',
|
||||||
});
|
});
|
||||||
|
|
||||||
const columns: TableColumnProps<Data>[] = useMemo(
|
const columns = useMemo(() => {
|
||||||
() => [
|
const tableColumns: TableColumnProps<Data>[] = [
|
||||||
{
|
{
|
||||||
title: 'Name',
|
title: 'Name',
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
@ -118,19 +118,19 @@ function ListOfAllDashboard(): JSX.Element {
|
|||||||
},
|
},
|
||||||
render: DateComponent,
|
render: DateComponent,
|
||||||
},
|
},
|
||||||
],
|
];
|
||||||
[],
|
|
||||||
);
|
|
||||||
|
|
||||||
if (action) {
|
if (action) {
|
||||||
columns.push({
|
tableColumns.push({
|
||||||
title: 'Action',
|
title: 'Action',
|
||||||
dataIndex: '',
|
dataIndex: '',
|
||||||
key: 'x',
|
width: 40,
|
||||||
width: 40,
|
render: DeleteButton,
|
||||||
render: DeleteButton,
|
});
|
||||||
});
|
}
|
||||||
}
|
|
||||||
|
return tableColumns;
|
||||||
|
}, [action]);
|
||||||
|
|
||||||
const data: Data[] = (filteredDashboards || dashboards).map((e) => ({
|
const data: Data[] = (filteredDashboards || dashboards).map((e) => ({
|
||||||
createdBy: e.created_at,
|
createdBy: e.created_at,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user