Skip to content

Commit 6c55851

Browse files
updated label format in select labels
1 parent 13616b7 commit 6c55851

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opencti-platform/opencti-front/src/private/components/common/stix_core_objects_or_stix_relationships/StixCoreObjectOrCoreRelationshipLabelsView.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import AutocompleteField from '../../../../components/AutocompleteField';
2222
import LabelCreation from '../../settings/labels/LabelCreation';
2323
import Security from '../../../../utils/Security';
2424
import { hexToRGB } from '../../../../utils/Colors';
25-
import { truncate } from '../../../../utils/String';
25+
import { capitalizeFirstLetter, truncate } from '../../../../utils/String';
2626
import useGranted, { KNOWLEDGE_KNUPDATE, SETTINGS_SETLABELS } from '../../../../utils/hooks/useGranted';
2727
import CommitMessage from '../form/CommitMessage';
2828
import Transition from '../../../../components/Transition';
@@ -317,7 +317,7 @@ const StixCoreObjectOrCoreRelationshipLabelsView = (props) => {
317317
>
318318
<Label />
319319
</div>
320-
<div className={classes.text}>{option.label}</div>
320+
<div className={classes.text}>{capitalizeFirstLetter(option.label)}</div>
321321
</li>
322322
)}
323323
classes={{ clearIndicator: classes.autoCompleteIndicator }}

0 commit comments

Comments
 (0)