Skip to content

Commit a9fe088

Browse files
author
Douman
committed
Unset changes to crate's documenation
1 parent 31a5a35 commit a9fe088

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/routes/crate/version.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export default Route.extend({
1515
async model(params) {
1616
const requestedVersion = params.version_num === 'all' ? '' : params.version_num;
1717
const crate = this.modelFor('crate');
18+
const original_docs = crate.get('documentation');
1819
const controller = this.controllerFor(this.routeName);
1920
const maxVersion = crate.get('max_version');
2021

@@ -81,6 +82,8 @@ export default Route.extend({
8182
}
8283

8384
controller.set('crate', crate);
85+
crate.set('documentation', original_docs);
86+
8487
controller.set('requestedVersion', requestedVersion);
8588
controller.set('fetchingFollowing', true);
8689

0 commit comments

Comments
 (0)