diff --git a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/FeatureStrategyConstraints.tsx b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/FeatureStrategyConstraints.tsx index 4ba1791463..80af1adfc6 100644 --- a/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/FeatureStrategyConstraints.tsx +++ b/frontend/src/component/feature/FeatureStrategy/FeatureStrategyConstraints/FeatureStrategyConstraints.tsx @@ -1,5 +1,5 @@ import { IConstraint, IFeatureStrategy } from 'interfaces/strategy'; -import React, { useEffect, useMemo } from 'react'; +import React, { useEffect } from 'react'; import { UPDATE_FEATURE_STRATEGY, CREATE_FEATURE_STRATEGY, diff --git a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsHours/FeatureMetricsHours.tsx b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsHours/FeatureMetricsHours.tsx index 5e9daa1dbc..b011bde595 100644 --- a/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsHours/FeatureMetricsHours.tsx +++ b/frontend/src/component/feature/FeatureView/FeatureMetrics/FeatureMetricsHours/FeatureMetricsHours.tsx @@ -3,8 +3,6 @@ import GeneralSelect, { IGeneralSelectProps, } from 'component/common/GeneralSelect/GeneralSelect'; import { subWeeks, subMonths, differenceInHours } from 'date-fns'; -import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig'; -import { useUiFlag } from 'hooks/useUiFlag'; import { usePlausibleTracker } from 'hooks/usePlausibleTracker'; import { useExtendedFeatureMetrics } from '../useExtendedFeatureMetrics'; diff --git a/src/lib/services/email-service.ts b/src/lib/services/email-service.ts index a8a56404c0..3f3f545ef5 100644 --- a/src/lib/services/email-service.ts +++ b/src/lib/services/email-service.ts @@ -146,7 +146,7 @@ export class EmailService { async sendScheduledChangeConflictEmail( recipient: string, conflictScope: 'flag' | 'strategy', - conflictingChangeRequestId: number, + conflictingChangeRequestId: number | undefined, changeRequests: { id: number; scheduledAt: string; @@ -173,7 +173,9 @@ export class EmailService { ? `${this.config.server.unleashUrl}/projects/${project}/archive?sort=archivedAt&search=${flagName}` : false; - const conflictingChangeRequestLink = `${this.config.server.unleashUrl}/projects/${project}/change-requests/${conflictingChangeRequestId}`; + const conflictingChangeRequestLink = conflictingChangeRequestId + ? `${this.config.server.unleashUrl}/projects/${project}/change-requests/${conflictingChangeRequestId}` + : false; const bodyHtml = await this.compileTemplate( 'scheduled-change-conflict', diff --git a/src/mailtemplates/scheduled-change-conflict/scheduled-change-conflict.html.mustache b/src/mailtemplates/scheduled-change-conflict/scheduled-change-conflict.html.mustache index d51cd4a941..7dec515e7f 100644 --- a/src/mailtemplates/scheduled-change-conflict/scheduled-change-conflict.html.mustache +++ b/src/mailtemplates/scheduled-change-conflict/scheduled-change-conflict.html.mustache @@ -442,7 +442,9 @@