Skip to content

Commit

Permalink
Merge pull request #2577 from apinf/hotfix/fix-lint
Browse files Browse the repository at this point in the history
Hotfix/fix lint
  • Loading branch information
marla-singer authored May 17, 2017
2 parents c3cb04a + c5b593c commit 0042b2a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions proxy_backends/collection/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ ProxyBackends.helpers({
// Get API
const api = Apis.findOne(apiId);

// placeholder for API name
let apiName;

// Make sure API was found before accessing name property
if (api) {
// Return API Name
return api.name;
// Set API Name from API
apiName = api.name;
}

return apiName;
},
});

0 comments on commit 0042b2a

Please sign in to comment.