Skip to content

Commit 8290549

Browse files
committed
Revert "routes/index: Fix versions array bug"
This reverts commit 9d68217.
1 parent 4fec724 commit 8290549

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

app/routes/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ export default Ember.Route.extend({
55
model() {
66
function addCrates(store, crates) {
77
for (var i = 0; i < crates.length; i++) {
8-
const crate = crates[i];
9-
if (crate.versions == null) {
10-
// passing `null` will return an empty versions array
11-
delete crate.versions;
12-
}
13-
crates[i] = store.push(store.normalize('crate', crate));
8+
crates[i] = store.push(store.normalize('crate', crates[i]));
149
}
1510
}
1611

0 commit comments

Comments
 (0)