Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/insomnia/src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ export const getMockServiceBinURL = (mockServer: MockServer, path: string) => {

export const getAIServiceURL = () => env.INSOMNIA_AI_URL || 'https://ai-helper.insomnia.rest';
export const getKonnectApiBaseURL = () => env.KONNECT_API_URL || 'https://global.api.konghq.com';
export const isKonnectSyncEnabled = () => !!env.KONNECT_SYNC_ENABLED;

// App website
export const getAppWebsiteBaseURL = () => env.INSOMNIA_APP_WEBSITE_URL || 'https://app.insomnia.rest';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import {
dashboardSortOrderName,
DEFAULT_SIDEBAR_SIZE,
getAppWebsiteBaseURL,
isKonnectSyncEnabled,
} from '~/common/constants';
import { scopeToBgColorMap, scopeToIconMap, scopeToLabelMap, scopeToTextColorMap } from '~/common/get-workspace-label';
import { fuzzyMatchAll, isNotNullOrUndefined } from '~/common/misc';
Expand Down Expand Up @@ -806,7 +805,7 @@ const Component = () => {
projects={projectsWithPresence}
storageRules={storageRules}
onCreateProject={() => setIsNewProjectModalOpen(true)}
konnectSyncEnabled={isKonnectSyncEnabled() && features.konnectSync.enabled}
konnectSyncEnabled={features.konnectSync.enabled}
/>
{activeProject && (
<>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { LoaderFunctionArgs } from 'react-router';
import { href, redirect, useLoaderData, useNavigate, useParams } from 'react-router';

import { logout } from '~/account/session';
import { DEFAULT_SIDEBAR_SIZE, isKonnectSyncEnabled } from '~/common/constants';
import { DEFAULT_SIDEBAR_SIZE } from '~/common/constants';
import type { GitRepository, Project } from '~/insomnia-data';
import { models, services } from '~/insomnia-data';
import { useRootLoaderData } from '~/root';
Expand Down Expand Up @@ -119,7 +119,7 @@ const Component = () => {
projects={projectsWithPresence}
storageRules={storageRules}
onCreateProject={() => setIsNewProjectModalOpen(true)}
konnectSyncEnabled={isKonnectSyncEnabled() && features.konnectSync.enabled}
konnectSyncEnabled={features.konnectSync.enabled}
/>
</div>
</Panel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { forwardRef, useEffect, useImperativeHandle, useRef, useState } from 're
import { Tab, TabList, TabPanel, Tabs } from 'react-aria-components';
import { useParams } from 'react-router';

import { AI_PLUGIN_NAME, isKonnectSyncEnabled } from '~/common/constants';
import { AI_PLUGIN_NAME } from '~/common/constants';
import { models } from '~/insomnia-data';
import { getBundlePlugins } from '~/plugins';
import { useRootLoaderData } from '~/root';
Expand Down Expand Up @@ -51,7 +51,6 @@ export const SettingsModal = forwardRef<SettingsModalHandle, ModalProps>((props,
setShouldShowAiSettingsTab(!!aiPlugin && !!userSession.id);

if (
isKonnectSyncEnabled() &&
userSession.id &&
organizationId &&
!models.organization.isScratchpadOrganizationId(organizationId)
Expand Down
Loading