Skip to content

Commit

Permalink
fix groupRecordsForFindMany
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed May 7, 2021
1 parent 4c08852 commit f112e95
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/store/addon/-private/system/fetch-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,12 @@ export default class FetchManager {
snapshots[i] = new Snapshot(options, identifiers[i], this._store);
}

let groups: Snapshot[][] = adapter.groupRecordsForFindMany(this, snapshots);
let groups: Snapshot[][];
if (adapter.groupRecordsForFindMany) {
groups = adapter.groupRecordsForFindMany(this, snapshots);
} else {
groups = [snapshots];
}

for (let i = 0, l = groups.length; i < l; i++) {
this._processCoalescedGroup(seeking, groups[i], adapter, optionsMap, modelName);
Expand Down

0 comments on commit f112e95

Please sign in to comment.