From 1562f0ff073d7664f583386fa961d0384d275b25 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Wed, 10 Nov 2021 09:37:46 -0500 Subject: [PATCH] fix: router --- 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 3815c94bb..3312ed744 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.currentRoute.queryParams[filterName]; + const value = this.router.currentRoute.queryParams[filterName]; return value ? JSON.parse(value) : defaultValue || null; },