Skip to content

Commit

Permalink
fix sorting on findings-total (daxa-ai#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
rutujaac authored Sep 10, 2024
1 parent 95993db commit 7beb672
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pebblo/app/pebblo-ui/src/constants/constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,7 @@ export const TABLE_DATA_FOR_APPLICATIONS = [
{
label: "Findings - Total",
field: "total",
render: (item) => {
return item.topics + item.entities;
},
render: (item) => item.total,
align: "end",
},
{
Expand Down Expand Up @@ -696,12 +694,18 @@ export const TABLE_DATA_FOR_PROMPTS_WITH_FINDINGS_SAFE_RETRIEVAL = [
},
];

const appListing =
APP_DATA?.appList?.map((app, index) => ({
...app,
total: app?.topics + app?.entities,
})) || [];

export const TAB_PANEL_ARR_FOR_APPLICATIONS_SAFE_LOADER = [
{
value: {
title: "Applications",
tableCol: TABLE_DATA_FOR_APPLICATIONS,
tableData: APP_DATA?.appList,
tableData: appListing,
isDownloadReport: false,
searchField: ["name", "owner"],
isSorting: true,
Expand Down

0 comments on commit 7beb672

Please sign in to comment.