From dbddfc85fa1f45a6ab3a73e44da7cba5a98b866d Mon Sep 17 00:00:00 2001 From: Andrew Simachev Date: Wed, 26 Mar 2025 17:25:19 +0100 Subject: [PATCH] fixes --- middleware.version | 2 +- src/scss/component/headSimple.scss | 2 +- src/ts/component/sidebar/section/type/title.tsx | 12 +++++++----- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/middleware.version b/middleware.version index 8b92d08d5d..4f14f0cd6d 100644 --- a/middleware.version +++ b/middleware.version @@ -1 +1 @@ -0.40.0-rc11 \ No newline at end of file +0.40.1 \ No newline at end of file diff --git a/src/scss/component/headSimple.scss b/src/scss/component/headSimple.scss index b31119e276..467de58d38 100644 --- a/src/scss/component/headSimple.scss +++ b/src/scss/component/headSimple.scss @@ -11,7 +11,7 @@ } } - &.isType, &.isRelation { align-items: center; } + &.isRelation { align-items: center; } &.isType, &.isRelation { .side.left { .titleWrap { align-items: center; } diff --git a/src/ts/component/sidebar/section/type/title.tsx b/src/ts/component/sidebar/section/type/title.tsx index aacacaeab4..2324293f5f 100644 --- a/src/ts/component/sidebar/section/type/title.tsx +++ b/src/ts/component/sidebar/section/type/title.tsx @@ -1,11 +1,12 @@ import * as React from 'react'; import { observer } from 'mobx-react'; import { IconObject, Editable, Label } from 'Component'; -import { analytics, I, keyboard, translate } from 'Lib'; +import { J, analytics, I, keyboard, translate } from 'Lib'; const SidebarSectionTypeTitle = observer(class SidebarSectionTypeTitle extends React.Component { refName = null; + timeout = 0; constructor (props: I.SidebarSectionComponent) { super(props); @@ -74,14 +75,15 @@ const SidebarSectionTypeTitle = observer(class SidebarSectionTypeTitle extends R this.setValue(); }; - getRelationKey (): string { - const { id, object } = this.props; + componentWillUnmount(): void { + window.clearTimeout(this.timeout); + }; - switch (id) { + getRelationKey (): string { + switch (this.props.id) { case 'title': return 'name'; case 'plural': return 'pluralName'; }; - return ''; };