Browse Source

HUE-7601 [indexer] Fix sample popover integration

Enrico Berti 8 năm trước cách đây
mục cha
commit
216cdfebf3
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 5 5
      desktop/libs/indexer/src/indexer/templates/indexes.mako

+ 5 - 5
desktop/libs/indexer/src/indexer/templates/indexes.mako

@@ -801,11 +801,11 @@ ${ assist.assistPanel() }
         huePubSub.publish('context.popover.show', {
           data: {
             type: 'collection',
-            definition: ko.mapping.toJS(field),
-            parent: {
-              definition: ko.mapping.toJS(self.index),
-              key: ko.observable(self.index().uniqueKey)
-            }
+            identifierChain: [
+              {}, // empty, needed by the context popover
+              ko.mapping.toJS(self.index),
+              ko.mapping.toJS(field)
+            ]
           },
           showInAssistEnabled: false,
           orientation: 'right',