This is an automated email from the ASF dual-hosted git repository.
yongjiezhao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new b3616d2 fix: follow up pr-15343 (#15355)
b3616d2 is described below
commit b3616d23a4c7c22501a7f792461a958b12e23a13
Author: Yongjie Zhao <[email protected]>
AuthorDate: Thu Jun 24 09:38:25 2021 +0100
fix: follow up pr-15343 (#15355)
---
superset/viz.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/viz.py b/superset/viz.py
index b46c297..4aa19ae 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -1236,7 +1236,7 @@ class NVD3TimeSeriesViz(NVD3Viz):
sort_by_label = utils.get_metric_name(sort_by)
if sort_by_label not in utils.get_metric_names(d["metrics"]):
d["metrics"].append(sort_by)
- d["orderby"] = [(sort_by, not self.form_data.get("order_desc",
is_asc))]
+ d["orderby"] = [(sort_by, is_asc)]
return d
def to_series(