UBER-628: allow reordering when sort is set to manual in the same group (#3553)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2023-08-03 09:32:40 +05:00 committed by GitHub
parent 5b12150366
commit e4a4630ee2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@
if (groupValue === undefined) { if (groupValue === undefined) {
return undefined return undefined
} }
if ((doc as any)[groupByKey] === groupValue) { if ((doc as any)[groupByKey] === groupValue && viewOptions.orderBy[0] !== 'rank') {
return return
} }
return { return {

View File

@ -242,7 +242,7 @@
if (groupValue === undefined) { if (groupValue === undefined) {
return undefined return undefined
} }
if ((doc as any)[groupByKey] === groupValue) { if ((doc as any)[groupByKey] === groupValue && viewOptions.orderBy[0] !== 'rank') {
return return
} }
return { return {