Skip to content

Commit

Permalink
Optional chaining for projectTag
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner committed Oct 1, 2021
1 parent 22c5e3d commit 66e8f61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/services/project-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default Service.extend({
currentVersion = {
key: latestVersionName,
name: latestVersionName,
tag: config.projectTag,
tag: config?.projectTag,
path: '',
sha: 'abcde',
};
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/mirage/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import config from 'ember-get-config';
const projectTag = config['ember-cli-addon-docs'].projectTag;
const projectTag = config['ember-cli-addon-docs']?.projectTag;

export default function () {
this.get('/versions.json', () => {
Expand Down

0 comments on commit 66e8f61

Please sign in to comment.