Skip to content

Commit 5b43819

Browse files
committed
Point at array's value, rather than at array for comparison
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent 46b2d8d commit 5b43819

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generate-stats.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ function generateTemplate(data) {
8080
var rowsString = '';
8181
8282
function filter(array) {
83-
return array.filter(function(value, index, arr){
84-
return !exclude.includes(value);
83+
return array.filter(function(value, index, arr) {
84+
return value.length && !exclude.includes(value[0]);
8585
});
8686
}
8787

0 commit comments

Comments
 (0)