Skip to content

Commit

Permalink
update pathing to match two level folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Luu committed Apr 16, 2024
1 parent aebac66 commit 00a0e39
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/components/src/DataTable/searchTableTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,8 @@ const renderDate = (text) => {
const renderIcon = (_, record) => (record.type === 'file' ? <FileOutlined /> : <FolderOutlined />);

const renderParentPath = (path) => {
if (path?.includes('shared')) {
return path.replace('shared', 'Project Folder');
}

if (path?.includes('namefolder/')) {
return path.replace('namefolder/', '');
return path.replace('namefolder/', 'users/');
}

return path;
Expand Down

0 comments on commit 00a0e39

Please sign in to comment.