Skip to content

Commit

Permalink
Address some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Mar 5, 2025
1 parent 7ffcdd0 commit c4db72a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions client/components/Main/ItemEditor/ItemManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ import {
handleEmbeddedItems,
IEmbeddedPlanningsActionType,
} from '../../../components/editor-standalone/save-handling';
import eventsApi from '../../../actions/events/api';
import {initialValues} from 'selectors/forms';

export class ItemManager {
editor: EditorComponent;
Expand Down Expand Up @@ -671,7 +669,7 @@ export class ItemManager {
const promise = handleEmbeddedItems(this.props.editorType, 'SAVE', this.props.itemType)
.then((res) =>
Promise.all([
res,
Promise.resolve(res),
!updateStates ? {} : this.setState({submitting: true, submitFailed: false})
])
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const getAllDayDatesField = () => {
.minute(1);
}

// TODO: Figure out support for _startTime _endTime, _time_to_be_confirmed fields
// PR-TODO: Figure out support for _startTime _endTime, _time_to_be_confirmed fields
return {
...item,
dates: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {getLocationsField} from './locations-field';
import {getLinksField} from './link-field';
import {getContactsField} from './contacts';
import {getOccurStatusField} from './occurence-status';
import {getLanguageField} from './lanugage';
import {getLanguagesField} from './languages';
import {getCalendarsField} from './calendars';
import {getAllDayDatesField} from './all-day';
import {getRecurringRulesField} from './recurring-rules';
Expand Down Expand Up @@ -99,7 +99,7 @@ export function getFieldDefinitions(profileType: 'event' | 'planning'): IFieldDe
},
getAllDayDatesField(),
getCalendarsField(),
getLanguageField(),
getLanguagesField(),
getOccurStatusField(),
getRecurringRulesField(),
getAccreditationDeadline(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {planningApi, superdeskApi} from '../../../superdeskApi';
import {getLanguages} from '../../../selectors/vocabs';
import {getVocabularyItemFieldTranslated} from '../../../utils/vocabularies';

export const getLanguageField = () => {
export const getLanguagesField = () => {
const vocabularyFromStore = getLanguages(planningApi.redux.store.getState());

return {
Expand Down

0 comments on commit c4db72a

Please sign in to comment.