refactor(chart): replace word cloud sort_by_series migration with code defaults (#39575)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Joe Li
2026-04-23 15:38:36 -07:00
committed by GitHub
parent 012bf52c8c
commit 39f12786a2
5 changed files with 35 additions and 91 deletions

View File

@@ -30,7 +30,7 @@ export default function buildQuery(formData: WordCloudFormData) {
if (sort_by_metric && metric) {
orderby.push([metric, false]);
}
if (sort_by_series && series) {
if (sort_by_series !== false && series) {
orderby.push([series, true]);
}