You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2018/08/28 22:21:00 UTC

[GitHub] mistercrunch commented on a change in pull request #5715: [Table view] Handle empty arrays in fd.timeseries_limit_metric

mistercrunch commented on a change in pull request #5715: [Table view] Handle empty arrays in fd.timeseries_limit_metric
URL: https://github.com/apache/incubator-superset/pull/5715#discussion_r213491309
 
 

 ##########
 File path: superset/assets/src/visualizations/table.js
 ##########
 @@ -185,9 +185,12 @@ function tableVis(slice, payload) {
       container.find('.dataTables_wrapper'), height);
   // Sorting table by main column
   let sortBy;
-  if (fd.timeseries_limit_metric) {
+  const limitMetric = Array.isArray(fd.timeseries_limit_metric)
 
 Review comment:
   No need to check on `.length`?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org