From 3e1384c90004728ea8fb2ff2fd84f1dd95d5ca7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ran=20Sander?= Date: Sun, 22 Aug 2021 21:17:33 +0200 Subject: [PATCH] Fix linting errors --- src/paint.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/paint.js b/src/paint.js index 4aa0b0b..de10715 100644 --- a/src/paint.js +++ b/src/paint.js @@ -12,9 +12,7 @@ function getColor (index, colors) { } function paint ( $element, layout, qTheme, component ) { - return new qlik.Promise(function(resolve) { - const colorScale = qTheme.properties.palettes.data[0]; const numDimensions = layout.qHyperCube.qDimensionInfo.length; const numMeasures = layout.qHyperCube.qMeasureInfo.length; @@ -179,7 +177,7 @@ function paint ( $element, layout, qTheme, component ) { $("#"+containerId).css('cursor','default'); network.on('select', function (properties) { - if (properties.hasOwnProperty("nodes") && component.options.noInteraction !== true) { + if (Object.prototype.hasOwnProperty.call(properties, "nodes") && component.options.noInteraction !== true) { if (properties.nodes.length > 0) { // find connected nodes to selection var connectedNodes = network.getConnectedNodes(properties.nodes[0]);