Skip to content

Commit 2215620

Browse files
committed
1 parent c0f7162 commit 2215620

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

presentation/src/main/java/com/anytypeio/anytype/presentation/widgets/DataViewListWidgetContainer.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,10 @@ class DataViewListWidgetContainer(
327327
addAll(defaultKeys)
328328
addAll(dataViewKeys)
329329
}.distinct(),
330+
// IMPORTANT: updateFormatForSubscription is required to enrich filters with proper
331+
// property formats from StoreOfRelations. ObjectView doesn't include formats in
332+
// DataView details, so we must always fetch the latest Property Format from Store.
333+
// This is critical for DATE and OBJECT relation types to get correct subscription results.
330334
filters = buildList {
331335
addAll(targetView?.filters?.updateFormatForSubscription(storeOfRelations).orEmpty())
332336
addAll(ObjectSearchConstants.defaultDataViewFilters())
@@ -350,6 +354,10 @@ class DataViewListWidgetContainer(
350354
addAll(defaultKeys)
351355
addAll(dataViewKeys)
352356
}.distinct(),
357+
// IMPORTANT: updateFormatForSubscription is required to enrich filters with proper
358+
// property formats from StoreOfRelations. ObjectView doesn't include formats in
359+
// DataView details, so we must always fetch the latest Property Format from Store.
360+
// This is critical for DATE and OBJECT relation types to get correct subscription results.
353361
filters = buildList {
354362
addAll(targetView?.filters?.updateFormatForSubscription(storeOfRelations).orEmpty())
355363
addAll(ObjectSearchConstants.defaultDataViewFilters())

0 commit comments

Comments
 (0)