Skip to content

Commit

Permalink
Revert "feat: add feature flag check"
Browse files Browse the repository at this point in the history
This reverts commit 64b3645.

Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Mar 12, 2024
1 parent 367268d commit a5fd308
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/core/public/http/http_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,9 @@ export class HttpService implements CoreService<HttpSetup, HttpStart> {
public setup({ injectedMetadata, fatalErrors }: HttpDeps): HttpSetup {
const opensearchDashboardsVersion = injectedMetadata.getOpenSearchDashboardsVersion();
let clientBasePath = '';
const plugins = injectedMetadata.getPlugins();
const findWorkspaceConfig = plugins.find((plugin) => plugin.id === 'workspace');
// Only try to get workspace id from url when workspace feature is enabled
if (findWorkspaceConfig) {
const workspaceId = getWorkspaceIdFromUrl(
window.location.href,
injectedMetadata.getBasePath()
);
if (workspaceId) {
clientBasePath = `${WORKSPACE_PATH_PREFIX}/${workspaceId}`;
}
const workspaceId = getWorkspaceIdFromUrl(window.location.href);
if (workspaceId) {
clientBasePath = `${WORKSPACE_PATH_PREFIX}/${workspaceId}`;
}
const basePath = new BasePath(
injectedMetadata.getBasePath(),
Expand Down

0 comments on commit a5fd308

Please sign in to comment.