From a5e2566eb5481b840c231a7dc08277db358adccd Mon Sep 17 00:00:00 2001 From: Jeff Keen Date: Mon, 3 Aug 2020 13:29:40 -0500 Subject: [PATCH] Switch out nullish operator for ternary to allow fastboot to load without errors --- addon/components/container-query.js | 6 +++--- tests/dummy/app/components/tracks/list/index.js | 4 ++-- .../dummy/app/components/widgets/widget-2/captions/index.js | 2 +- .../app/components/widgets/widget-2/stacked-chart/index.js | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/addon/components/container-query.js b/addon/components/container-query.js index 12080105..c013f05d 100644 --- a/addon/components/container-query.js +++ b/addon/components/container-query.js @@ -9,15 +9,15 @@ export default class ContainerQueryComponent extends Component { @tracked width; get features() { - return this.args.features ?? {}; + return this.args.features ? this.args.features : {}; } get dataAttributePrefix() { - return this.args.dataAttributePrefix ?? 'container-query'; + return this.args.dataAttributePrefix ? this.args.dataAttributePrefix : 'container-query'; } get debounce() { - return this.args.debounce ?? 0; + return this.args.debounce ? this.args.debounce : 0; } constructor() { diff --git a/tests/dummy/app/components/tracks/list/index.js b/tests/dummy/app/components/tracks/list/index.js index 46d1a368..064ff60a 100644 --- a/tests/dummy/app/components/tracks/list/index.js +++ b/tests/dummy/app/components/tracks/list/index.js @@ -3,7 +3,7 @@ import Component from '@glimmer/component'; export default class TracksListComponent extends Component { get numColumns() { - return this.args.numColumns ?? 1; + return this.args.numColumns ? this.args.numColumns : 1; } get numRows() { @@ -11,7 +11,7 @@ export default class TracksListComponent extends Component { } get tracks() { - return this.args.tracks ?? []; + return this.args.tracks ? this.args.tracks : []; } @action updateCssForRows(element) { diff --git a/tests/dummy/app/components/widgets/widget-2/captions/index.js b/tests/dummy/app/components/widgets/widget-2/captions/index.js index 7a5c9eb7..9fd74625 100644 --- a/tests/dummy/app/components/widgets/widget-2/captions/index.js +++ b/tests/dummy/app/components/widgets/widget-2/captions/index.js @@ -16,7 +16,7 @@ export default class WidgetsWidget2CaptionsComponent extends Component { } get summaries() { - return this.args.summaries ?? []; + return this.args.summaries ? this.args.summaries : []; } get canShowPreviousButton() { diff --git a/tests/dummy/app/components/widgets/widget-2/stacked-chart/index.js b/tests/dummy/app/components/widgets/widget-2/stacked-chart/index.js index e42467ed..199895ad 100644 --- a/tests/dummy/app/components/widgets/widget-2/stacked-chart/index.js +++ b/tests/dummy/app/components/widgets/widget-2/stacked-chart/index.js @@ -27,7 +27,7 @@ export default class WidgetsWidget2StackedChartComponent extends Component { } get data() { - return this.args.data ?? []; + return this.args.data ? this.args.data : []; } get margin() {