Skip to content
Permalink
Browse files

Fix data rows check in most used assets call.

  • Loading branch information...
albertosantini committed Jun 29, 2018
1 parent b74935b commit 23334fc55de97131595bcf44f6ff76859ca33dd0
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/crm.js
@@ -249,7 +249,7 @@ function getMostUsedAssets(callback) {
const n = 10,
mostUsedSymbolsSortable = [];

if (data && data.rows) {
if (data && data.rows.length) {
mostUsedSymbols = data.rows[0].value;
} else {
callback("Most used assets not available", null);

0 comments on commit 23334fc

Please sign in to comment.
You can’t perform that action at this time.