Skip to content

Commit

Permalink
update create workspace url
Browse files Browse the repository at this point in the history
Signed-off-by: tygao <tygao@amazon.com>
  • Loading branch information
raintygao committed Oct 26, 2023
1 parent 1370e1c commit d3a7982
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/plugins/workspace/public/components/workspace_list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ import { useOpenSearchDashboards } from '../../../../../plugins/opensearch_dashb
import { switchWorkspace, updateWorkspace } from '../utils/workspace';
import { debounce } from '../utils/common';

import { formatUrlWithWorkspaceId } from '../../utils';

import { WORKSPACE_CREATE_APP_ID } from '../../../common/constants';

const WORKSPACE_LIST_PAGE_DESCRIPTIOIN = i18n.translate('workspace.list.description', {
Expand Down Expand Up @@ -129,13 +127,9 @@ export const WorkspaceList = () => {
if (!application || !http) {
return '';
}
return formatUrlWithWorkspaceId(
application.getUrlForApp(WORKSPACE_CREATE_APP_ID, {
absolute: false,
}),
'',
http.basePath
);
return application.getUrlForApp(WORKSPACE_CREATE_APP_ID, {
absolute: false,
});
}, [application, http]);

const debouncedSetQueryInput = useMemo(() => {
Expand Down

0 comments on commit d3a7982

Please sign in to comment.