Skip to content

Commit

Permalink
Fix 'sizeEdgeVal' bug when adding a relation
Browse files Browse the repository at this point in the history
Fixes the 'ReferenceError: sizeEdgeVal is not defined'
error on the osd branch.

Signed-off-by: Eva Millán <[email protected]>
  • Loading branch information
evamillan authored and dlumbrer committed Oct 13, 2022
1 parent e0c91c0 commit 65cd32c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/kbn-network-vis-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ function KbnNetworkVisController($scope, config, $timeout) {
const network = new Network(container, data, options);

$('#' + loadingId).hide();

// Draw the color legend if Node Color is activated
if (colorBucketId && $scope.visParams.showColorLegend) {
$scope.uiState.set('vis.colors', colorDicc);
Expand Down Expand Up @@ -585,7 +585,6 @@ function KbnNetworkVisController($scope, config, $timeout) {
usedColors.push(confirmColor);
}
}
}

const relation = {
keyRelation: bucket[secondBucketId],
Expand Down Expand Up @@ -626,7 +625,8 @@ function KbnNetworkVisController($scope, config, $timeout) {
nodeSizeTermName,
nodeReturn.value
);

}

return nodeReturn;
} else if (result.length === 1) {
// we already have this node id in dataNodes, so update with new info
Expand Down

0 comments on commit 65cd32c

Please sign in to comment.