1
0
Fork 0
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:
Andrew Simachev 2025-06-06 18:11:06 +02:00
parent 2f9f2f541b
commit 4dadcd2632
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF

View file

@ -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) {