Support orderBy as array (#5681)
closes: #4301 --------- Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
@ -16,7 +16,7 @@ export const sortCachedObjectEdges = ({
|
||||
orderBy: RecordGqlOperationOrderBy;
|
||||
readCacheField: ReadFieldFunction;
|
||||
}) => {
|
||||
const [orderByFieldName, orderByFieldValue] = Object.entries(orderBy)[0];
|
||||
const [orderByFieldName, orderByFieldValue] = Object.entries(orderBy[0])[0];
|
||||
const [orderBySubFieldName, orderBySubFieldValue] =
|
||||
typeof orderByFieldValue === 'string'
|
||||
? []
|
||||
|
||||
Reference in New Issue
Block a user