Skip to content
Snippets Groups Projects
Commit 546c663a authored by Martin Schoeler's avatar Martin Schoeler
Browse files

fix reviews

parent a230e124
No related merge requests found
......@@ -14,13 +14,12 @@ Template.oauthApp.helpers({
},
data() {
let params;
let data;
const instance = Template.instance();
if (typeof instance.data.params === 'function') {
params = instance.data.params();
}
if (params && params.id) {
data = ChatOAuthApps.findOne({ _id: params.id });
const data = ChatOAuthApps.findOne({ _id: params.id });
if (data) {
data.authorization_url = Meteor.absoluteUrl('oauth/authorize');
data.access_token_url = Meteor.absoluteUrl('oauth/token');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment