From 0e8f97250c3e6e92f423d5ac54c53c5c7fde6a0f Mon Sep 17 00:00:00 2001 From: Tomas Kikutis Date: Fri, 13 Dec 2024 14:14:09 +0100 Subject: [PATCH] fix build --- .../field-definitions/agendas-field.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/components/planning-editor-standalone/field-definitions/agendas-field.ts b/client/components/planning-editor-standalone/field-definitions/agendas-field.ts index 9281f7017..81161e9a0 100644 --- a/client/components/planning-editor-standalone/field-definitions/agendas-field.ts +++ b/client/components/planning-editor-standalone/field-definitions/agendas-field.ts @@ -1,12 +1,13 @@ -import {IAgenda} from 'interfaces'; +import {IAgenda} from '../../../interfaces'; import {IDropdownConfigManualSource, IAuthoringFieldV2} from 'superdesk-api'; -import {planningApi} from 'superdeskApi'; -import {gettext} from 'utils'; +import {planningApi, superdeskApi} from '../../../superdeskApi'; import {IFieldDefinition} from './interfaces'; export const getAgendasField = (): IFieldDefinition => ({ fieldId: 'agendas', getField: ({id, required}) => { + const {gettext} = superdeskApi.localization; + const fieldConfig: IDropdownConfigManualSource = { source: 'manual-entry', options: ((planningApi.redux.store.getState().agenda.agendas ?? []) as Array)