mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-07 21:47:02 +09:00
JS-6952: fix
This commit is contained in:
parent
2f9f2f541b
commit
4dadcd2632
1 changed files with 8 additions and 0 deletions
|
@ -20,6 +20,14 @@ class Dataview {
|
|||
const viewRelations = (view.relations || []).filter(it => it);
|
||||
|
||||
let relations = S.Record.getDataviewRelations(rootId, blockId);
|
||||
|
||||
if (!relations.find(it => it.relationKey == 'name')) {
|
||||
const nr = S.Record.getRelationByKey('name');
|
||||
if (nr) {
|
||||
relations.unshift(nr);
|
||||
};
|
||||
};
|
||||
|
||||
relations = U.Common.objectCopy(relations).filter(it => it);
|
||||
|
||||
if (!config.debug.hiddenObject) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue