Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
Merge branch 'dev' into render-hack-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rybmat committed Nov 24, 2017
2 parents 00b573b + 4cb4168 commit 29db697
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/fastboot-only/local-navigation-for-seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default Component.extend({
wikiVariables: service(),
localLinks: readOnly('wikiVariables.localNav'),
currentLocalLinks: or('currentLocalNav.children', 'localLinks'),
flattenLinksArray(linksList) {
flattenLinksArray(linksList = []) {
let flatArray = [];
linksList.forEach((item) => {
if (item.href !== '#') {
Expand Down
4 changes: 2 additions & 2 deletions app/routes/application.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {inject as service} from '@ember/service';
import Route from '@ember/routing/route';
import {getOwner} from '@ember/application';
import {getWithDefault} from '@ember/object';
import Ember from 'ember';
import ArticleModel from '../models/wiki/article';
import HeadTagsStaticMixin from '../mixins/head-tags-static';
Expand Down Expand Up @@ -193,10 +194,9 @@ export default Route.extend(
}

this.get('logger').error('Application error', error);

if (fastboot.get('isFastBoot')) {
fastboot.get('shoebox').put('serverError', true);
fastboot.set('response.statusCode', 503);
fastboot.set('response.statusCode', getWithDefault(error, 'code', 503));
this.injectScriptsFastbootOnly(null, transition.queryParams);

// We can't use the built-in mechanism to render error substates.
Expand Down

0 comments on commit 29db697

Please sign in to comment.