Skip to content

Commit 26d2d7a

Browse files
authored
fix: reset process query param when routing away from the icr page (#197)
Refs: oph-1011
1 parent 74a703b commit 26d2d7a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/routes/information-assets/information-asset.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Route from '@ember/routing/route';
2+
23
import { service } from '@ember/service';
34

45
export default class InformationAssetsInformationAssetRoute extends Route {
@@ -11,6 +12,7 @@ export default class InformationAssetsInformationAssetRoute extends Route {
1112
{ pageAttachments: { refreshModel: true } },
1213
{ sizeAttachments: { refreshModel: true } },
1314
{ sortAttachments: { refreshModel: true } },
15+
{ process: { refreshModel: false } },
1416
];
1517

1618
beforeModel(transition) {
@@ -73,4 +75,12 @@ export default class InformationAssetsInformationAssetRoute extends Route {
7375
},
7476
);
7577
}
78+
79+
resetController(controller, _isExiting, transition) {
80+
if (
81+
transition.targetName !== 'information-assets.information-asset.index'
82+
) {
83+
controller.process = null;
84+
}
85+
}
7686
}

0 commit comments

Comments
 (0)