Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions addon/components/container-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions tests/dummy/app/components/tracks/list/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ 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() {
return Math.ceil(this.tracks.length / this.numColumns);
}

get tracks() {
return this.args.tracks ?? [];
return this.args.tracks ? this.args.tracks : [];
}

@action updateCssForRows(element) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down