Eslint prefer-const (#17864)

* adds prefer-const to eslint config and runs fixer

* reverts unintended change
This commit is contained in:
Jordan Reimer
2022-11-09 16:15:31 -07:00
committed by GitHub
parent 96d623d3fc
commit 483ef19946
464 changed files with 1701 additions and 1714 deletions

View File

@@ -54,7 +54,7 @@ export default class InfoTableItemArray extends Component {
}
get displayArrayTruncated() {
let { displayArray } = this.args;
const { displayArray } = this.args;
if (!displayArray) return null;
if (displayArray.length >= 10 && !this.args.doNotTruncate) {
// if array greater than 10 in length only display the first 5
@@ -65,9 +65,9 @@ export default class InfoTableItemArray extends Component {
@action async fetchOptions() {
if (this.args.isLink && this.args.modelType) {
let queryOptions = this.args.backend ? { backend: this.args.backend } : {};
const queryOptions = this.args.backend ? { backend: this.args.backend } : {};
let modelRecords = await this.store.query(this.args.modelType, queryOptions).catch((err) => {
const modelRecords = await this.store.query(this.args.modelType, queryOptions).catch((err) => {
if (err.httpStatus === 404) {
return [];
} else {