From c1b60c634e11071277f36a4f50b0882bc7f4dbef Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Wed, 10 Nov 2021 09:45:53 -0500 Subject: [PATCH] fix: currentroute again --- addons/core/addon/decorators/resource-filter-param.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/core/addon/decorators/resource-filter-param.js b/addons/core/addon/decorators/resource-filter-param.js index 3312ed744..d87e00e4f 100644 --- a/addons/core/addon/decorators/resource-filter-param.js +++ b/addons/core/addon/decorators/resource-filter-param.js @@ -64,7 +64,7 @@ export function resourceFilterParam(allowedValues, defaultValue) { * Returns the JSON-parsed query parameter value OR defaultValue. */ get() { - const value = this.router.currentRoute.queryParams[filterName]; + const value = this._router.currentRoute.queryParams[filterName]; return value ? JSON.parse(value) : defaultValue || null; },