Skip to content

Commit

Permalink
[server/ui] allow apps to have no injected vars
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Jan 8, 2016
1 parent 5d13475 commit 3e727af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ module.exports = async (kbnServer, server, config) => {
buildNum: config.get('pkg.buildNum'),
buildSha: config.get('pkg.buildSha'),
basePath: config.get('server.basePath'),
vars: defaults(app.getInjectedVars(), defaultInjectedVars),
vars: defaults(app.getInjectedVars() || {}, defaultInjectedVars),
};

return this.view(app.templateName, {
Expand Down

0 comments on commit 3e727af

Please sign in to comment.