diff --git a/frontend/projects/upgrade/src/app/features/dashboard/feature-flags/modals/add-feature-flag-modal/add-feature-flag-modal.component.ts b/frontend/projects/upgrade/src/app/features/dashboard/feature-flags/modals/add-feature-flag-modal/add-feature-flag-modal.component.ts index e7ab7c26b4..6ad0cd4d42 100644 --- a/frontend/projects/upgrade/src/app/features/dashboard/feature-flags/modals/add-feature-flag-modal/add-feature-flag-modal.component.ts +++ b/frontend/projects/upgrade/src/app/features/dashboard/feature-flags/modals/add-feature-flag-modal/add-feature-flag-modal.component.ts @@ -24,7 +24,7 @@ import { MatSelectModule } from '@angular/material/select'; import { FeatureFlagsService } from '../../../../../core/feature-flags/feature-flags.service'; import { CommonFormHelpersService } from '../../../../../shared/services/common-form-helpers.service'; import { FEATURE_FLAG_STATUS, SEGMENT_TYPE, FILTER_MODE } from '../../../../../../../../../../types/src'; -import { AddFeatureFlagRequest } from '../../../../../core/feature-flags/store/feature-flags.model'; +import { AddFeatureFlagRequest, FeatureFlagFormData } from '../../../../../core/feature-flags/store/feature-flags.model'; import { Subscription } from 'rxjs'; import { TranslateModule } from '@ngx-translate/core'; import { ExperimentService } from '../../../../../core/experiments/experiments.service'; @@ -86,7 +86,7 @@ export class AddFeatureFlagModalComponent { key: ['', Validators.required], description: [''], appContext: ['', Validators.required], - tags: [], + tags: [[]], }); } @@ -116,8 +116,7 @@ export class AddFeatureFlagModalComponent { createAddFeatureFlagRequest(): void { // temporarily use any until tags feature is added - // const { name, key, description, appContext, tags }: FeatureFlagFormData = this.featureFlagForm.value; - const { name, key, description, appContext, tags }: any = this.featureFlagForm.value; + const { name, key, description, appContext, tags }: FeatureFlagFormData = this.featureFlagForm.value; const addFeatureFlagRequest: AddFeatureFlagRequest = { name,