mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
JS-7079: fix
This commit is contained in:
parent
e2466f7683
commit
91ba4a6dc0
1 changed files with 6 additions and 2 deletions
|
@ -52,9 +52,13 @@ class UtilSubscription {
|
|||
const { config } = S.Common;
|
||||
const { ignoreHidden, ignoreDeleted, ignoreArchived } = param;
|
||||
const filters = U.Common.objectCopy(param.filters || []);
|
||||
const skipLayouts = [ I.ObjectLayout.Chat ];
|
||||
|
||||
let skipLayouts = [];
|
||||
|
||||
if (!config.experimental) {
|
||||
skipLayouts = skipLayouts.concat([ I.ObjectLayout.Chat, I.ObjectLayout.ChatOld ]);
|
||||
};
|
||||
|
||||
filters.push({ relationKey: 'resolvedLayout', condition: I.FilterCondition.NotIn, value: skipLayouts });
|
||||
filters.push({ relationKey: 'recommendedLayout', condition: I.FilterCondition.NotIn, value: skipLayouts });
|
||||
|
||||
if (ignoreHidden && !config.debug.hiddenObject) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue