mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 19:47:54 +00:00
Eslint prefer-const (#17864)
* adds prefer-const to eslint config and runs fixer * reverts unintended change
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user