Refactor let to const
This commit is contained in:
parent
54de97c134
commit
914a4eb8e9
1 changed files with 3 additions and 3 deletions
|
|
@ -36,7 +36,7 @@ export default {
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
packageNameWidget() {
|
packageNameWidget() {
|
||||||
let servicePackageNames = this.getCmsContent(
|
const servicePackageNames = this.getCmsContent(
|
||||||
this.servicePackageOptionsCmsName,
|
this.servicePackageOptionsCmsName,
|
||||||
"Answers"
|
"Answers"
|
||||||
);
|
);
|
||||||
|
|
@ -45,14 +45,14 @@ export default {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
let currentPackage = servicePackageNames.find(
|
const currentPackage = servicePackageNames.find(
|
||||||
(entry) => entry.Name === this.packageLevel
|
(entry) => entry.Name === this.packageLevel
|
||||||
);
|
);
|
||||||
|
|
||||||
return currentPackage.SubWidgetName;
|
return currentPackage.SubWidgetName;
|
||||||
},
|
},
|
||||||
defaultPackageText() {
|
defaultPackageText() {
|
||||||
let defaultItems = this.getCmsContent(this.defaultPackageItemsCmsName, "Answers");
|
const defaultItems = this.getCmsContent(this.defaultPackageItemsCmsName, "Answers");
|
||||||
|
|
||||||
if (!defaultItems) {
|
if (!defaultItems) {
|
||||||
return [];
|
return [];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue