Skip to content

Commit

Permalink
Truncate import folder name in unrecog util (#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan authored Sep 20, 2024
1 parent a474b6a commit 67b412c
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/pages/utilities/UnrecognizedUtilityTabs/UnrecognizedTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,23 @@ function UnrecognizedTab() {
id: 'importFolder',
name: 'Import Folder',
className: 'w-40',
item: file =>
find(
item: (file) => {
const importFolder = find(
importFolders,
{ ID: file?.Locations[0]?.ImportFolderID ?? -1 },
)?.Name ?? '<Unknown>',
)?.Name ?? '<Unknown>';

return (
<div
className="truncate"
data-tooltip-id="tooltip"
data-tooltip-content={importFolder}
data-tooltip-delay-show={500}
>
{importFolder}
</div>
);
},
},
...staticColumns,
{
Expand Down

0 comments on commit 67b412c

Please sign in to comment.