Переглянути джерело

HUE-7601 [indexer] Fix sample popover integration

Enrico Berti 8 роки тому
батько
коміт
216cdfe

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

@@ -801,11 +801,11 @@ ${ assist.assistPanel() }
         huePubSub.publish('context.popover.show', {
         huePubSub.publish('context.popover.show', {
           data: {
           data: {
             type: 'collection',
             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,
           showInAssistEnabled: false,
           orientation: 'right',
           orientation: 'right',