We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d1312b commit f73a894Copy full SHA for f73a894
src/commands/dashboard/widget/edit.ts
@@ -146,7 +146,9 @@ function validateQueryConstraints(
146
validateGroupByRequiresLimit(columns, limit ?? undefined);
147
}
148
149
- if (flags.sort || flags.query) {
+ // Only validate sort when user explicitly passes --sort, not when merely
150
+ // changing --query (which may leave the existing auto-defaulted sort stale)
151
+ if (flags.sort) {
152
const orderby =
153
mergedQueries?.[0]?.orderby ?? existing.queries?.[0]?.orderby;
154
const aggregates =
0 commit comments