未验证 提交 46321282 编写于 作者: A Andrey Zhavoronkov 提交者: GitHub

Preserve the order of the label attributes in the object item details. (#3945)

* preserve the order of the label attributes in the object item details

* updated changelog, cvat-ui v++
上级 c6ed6d12
......@@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed Interaction handler keyboard handlers (<https://github.com/openvinotoolkit/cvat/pull/3881>)
- Points of invisible shapes are visible in autobordering (<https://github.com/openvinotoolkit/cvat/pull/3931>)
- Order of the label attributes in the object item details(<https://github.com/openvinotoolkit/cvat/pull/3945>)
### Security
- TDB
......
{
"name": "cvat-ui",
"version": "1.27.0",
"version": "1.27.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "cvat-ui",
"version": "1.27.0",
"version": "1.27.1",
"license": "MIT",
"dependencies": {
"@ant-design/icons": "^4.6.3",
......
{
"name": "cvat-ui",
"version": "1.27.0",
"version": "1.27.1",
"description": "CVAT single-page application",
"main": "src/index.tsx",
"scripts": {
......
......@@ -41,8 +41,6 @@ function ItemAttributesComponent(props: Props): JSX.Element {
collapsed, attributes, values, readonly, changeAttribute, collapse,
} = props;
const sorted = [...attributes].sort((a: any, b: any): number => a.inputType.localeCompare(b.inputType));
return (
<Row>
<Collapse
......@@ -51,7 +49,7 @@ function ItemAttributesComponent(props: Props): JSX.Element {
onChange={collapse}
>
<Collapse.Panel header={<span style={{ fontSize: '11px' }}>Details</span>} key='details'>
{sorted.map(
{attributes.map(
(attribute: any): JSX.Element => (
<Row
key={attribute.id}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册