From 1989917c1b5937afc68abe9fe3e40df75e59b5fd Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Fri, 20 Dec 2019 23:32:59 +0100 Subject: [PATCH] routes/github-authorize: Fix `queryParams` code --- app/routes/github-authorize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/github-authorize.js b/app/routes/github-authorize.js index fca003a398a..501281b1404 100644 --- a/app/routes/github-authorize.js +++ b/app/routes/github-authorize.js @@ -18,7 +18,7 @@ import { serializeQueryParams } from 'ember-fetch/utils/serialize-query-params'; export default Route.extend({ async beforeModel(transition) { try { - let queryParams = serializeQueryParams(transition.queryParams); + let queryParams = serializeQueryParams(transition.to.queryParams); let resp = await fetch(`/api/private/session/authorize?${queryParams}`); let json = await resp.json(); let item = JSON.stringify({ ok: resp.ok, data: json });