Fleet UI: Fix app id link not row id (#25113)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
- Fleet UI: Fixed redirect when clicking on any column in the Fleet Maintained Apps table
|
||||
+7
-3
@@ -47,6 +47,10 @@ interface IFleetMaintainedAppsTableProps {
|
||||
data?: ISoftwareFleetMaintainedAppsResponse;
|
||||
}
|
||||
|
||||
interface IRowProps {
|
||||
original: IFleetMaintainedApp;
|
||||
}
|
||||
|
||||
const FleetMaintainedAppsTable = ({
|
||||
teamId,
|
||||
isLoading,
|
||||
@@ -118,9 +122,9 @@ const FleetMaintainedAppsTable = ({
|
||||
[determineQueryParamChange, generateNewQueryParams, router]
|
||||
);
|
||||
|
||||
const handleRowClick = (row: IFleetMaintainedApp) => {
|
||||
const handleRowClick = (row: IRowProps) => {
|
||||
const path = `${PATHS.SOFTWARE_FLEET_MAINTAINED_DETAILS(
|
||||
row.id
|
||||
row.original.id
|
||||
)}?${buildQueryStringFromParams({
|
||||
team_id: teamId,
|
||||
})}`;
|
||||
@@ -156,7 +160,7 @@ const FleetMaintainedAppsTable = ({
|
||||
};
|
||||
|
||||
return (
|
||||
<TableContainer<IFleetMaintainedApp>
|
||||
<TableContainer<IRowProps>
|
||||
className={baseClass}
|
||||
columnConfigs={tableHeadersConfig}
|
||||
data={data?.fleet_maintained_apps ?? []}
|
||||
|
||||
Reference in New Issue
Block a user