Skip to content

Commit

Permalink
Merge branch 'authoring-react-planning' into category-field-port
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Dec 13, 2024
2 parents 6f7325d + 0c498a7 commit cf7db0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/components/fields/editor/CustomVocabularies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {superdeskApi} from '../../../superdeskApi';
import {IEditorFieldProps, IProfileSchemaTypeList} from '../../../interfaces';
import {Row} from '../../UI/Form';
import {getVocabularyItemFieldTranslated} from '../../../utils/vocabularies';
import {arrayToTree} from 'superdesk-core/scripts/core/helpers/tree';
import {TreeSelect} from 'superdesk-ui-framework/react';

export interface ICustomVocabulariesProps extends IEditorFieldProps {
Expand Down Expand Up @@ -61,7 +60,7 @@ class CustomVocabulariesComponent extends React.PureComponent<IProps> {
value={(item.subject ?? []).filter((x) => x.scheme === cv._id)}
label={gettext(cv.display_name)}
required={required ?? schema?.required}
getOptions={() => arrayToTree(
getOptions={() => superdeskApi.utilities.arrayToTree(
cv.items.map((cvItem) => ({
...cvItem,
scheme: cv._id,
Expand Down

0 comments on commit cf7db0d

Please sign in to comment.