From 00a0e39b26586bd02de6566ff38714a0637e0c93 Mon Sep 17 00:00:00 2001 From: Derek Luu Date: Tue, 16 Apr 2024 15:32:08 -0400 Subject: [PATCH] update pathing to match two level folder structure --- modules/components/src/DataTable/searchTableTypes.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/components/src/DataTable/searchTableTypes.js b/modules/components/src/DataTable/searchTableTypes.js index e987bf0b8..abf73a53c 100644 --- a/modules/components/src/DataTable/searchTableTypes.js +++ b/modules/components/src/DataTable/searchTableTypes.js @@ -56,12 +56,8 @@ const renderDate = (text) => { const renderIcon = (_, record) => (record.type === 'file' ? : ); 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;