浏览代码

HUE-7601 [indexer] Fix sample popover integration

Enrico Berti 8 年之前
父节点
当前提交
216cdfebf3
共有 1 个文件被更改,包括 5 次插入5 次删除
  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',