mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Change v -> v.name & v.value in front
This commit is contained in:
parent
73e374e2cb
commit
9e69e11146
1 changed files with 5 additions and 3 deletions
|
|
@ -779,14 +779,16 @@ angular.module('zeppelinWebApp')
|
|||
websocketMsgSrv.completion($scope.paragraph.id, buf, pos);
|
||||
|
||||
$scope.$on('completionList', function(event, data) {
|
||||
console.log('%o', data);
|
||||
if (data.completions) {
|
||||
var completions = [];
|
||||
for (var c in data.completions) {
|
||||
var v = data.completions[c];
|
||||
console.log('%o %o', v.name, v.value);
|
||||
completions.push({
|
||||
name:v,
|
||||
value:v,
|
||||
score:300
|
||||
name: v.name,
|
||||
value: v.value,
|
||||
score: 300
|
||||
});
|
||||
}
|
||||
callback(null, completions);
|
||||
|
|
|
|||
Loading…
Reference in a new issue