diff --git a/apps/dashboard/src/components/environments-list.tsx b/apps/dashboard/src/components/environments-list.tsx index d66051a3aa9..3ff4a539cac 100644 --- a/apps/dashboard/src/components/environments-list.tsx +++ b/apps/dashboard/src/components/environments-list.tsx @@ -2,7 +2,7 @@ import { useAuth } from '@/context/auth/hooks'; import { useEnvironment, useFetchEnvironments } from '@/context/environment/hooks'; import { useDeleteEnvironment } from '@/hooks/use-environments'; import { cn } from '@/utils/ui'; -import { IEnvironment, PROTECTED_ENVIRONMENTS } from '@novu/shared'; +import { EnvironmentEnum, IEnvironment, PROTECTED_ENVIRONMENTS } from '@novu/shared'; import { useState } from 'react'; import { RiDeleteBin2Line, RiMore2Fill } from 'react-icons/ri'; import { DeleteEnvironmentDialog } from './delete-environment-dialog'; @@ -125,7 +125,7 @@ export function EnvironmentsList() { - {!PROTECTED_ENVIRONMENTS.includes(environment.name) && ( + {!PROTECTED_ENVIRONMENTS.includes(environment.name as EnvironmentEnum) && ( handleDeleteClick(environment)} disabled={ environment._id === currentEnvironment?._id || - PROTECTED_ENVIRONMENTS.includes(environment.name) + PROTECTED_ENVIRONMENTS.includes(environment.name as EnvironmentEnum) } > diff --git a/packages/shared/src/entities/environment/environment.interface.ts b/packages/shared/src/entities/environment/environment.interface.ts index eefddb76bd4..6f9479a1661 100644 --- a/packages/shared/src/entities/environment/environment.interface.ts +++ b/packages/shared/src/entities/environment/environment.interface.ts @@ -10,7 +10,7 @@ export interface IEnvironment { widget: IWidgetSettings; dns?: IDnsSettings; apiRateLimits?: IApiRateLimitMaximum; - color?: string; + color: string; branding?: { color: string; logo: string;