TSK-941: fix incorrect rewriting space after selecting in SpaceSelect (#2827)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2023-03-24 14:44:10 +05:00 committed by GitHub
parent 67fa0c0858
commit a259f7c9af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@
let classLabel = ''
$: {
const doc = docs[0]
space = doc.space
if (space === undefined) space = doc.space
translate(hierarchy.getClass(doc._class).label, {}).then((res) => (label = res.toLocaleLowerCase()))
}
$: _class && translate(_class, {}).then((res) => (classLabel = res.toLocaleLowerCase()))