Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Aug 3, 2023
1 parent 49f5b12 commit 630f798
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ function WorkspaceColumn({ coreSetup, workspaces, record }: WorkspaceColumnProps
return map.set(ws.id, ws.name);
}, new Map<string, string>());

const publicWsName = i18n.translate('workspace.public.name', {
defaultMessage: 'public',
});
wsLookUp?.set('public', publicWsName);

if (workspaces?.includes(PUBLIC_WORKSPACE)) {
return <EuiText>{publicWsName}</EuiText>;
}

const workspaceNames = workspaces?.map((wsId) => wsLookUp?.get(wsId)).join(' | ');

return <EuiText>{workspaceNames}</EuiText>;
Expand Down

0 comments on commit 630f798

Please sign in to comment.