I am currently working with Vue and TypeScript and have encountered a problem. How can I resolve it? Here is the code snippet in question:
private setTitle(systemConfig: any) {
const systemConfigParse;
let obj;
systemConfigParse = JSON.parse(systemConfig);
obj = (<any>systemConfigParse).find((item: any) => {
return item.Code == "hospitalName";
});
this.hospitalName = obj.Value;
obj = (<any>systemConfigParse).find((item: any) => {
return item.Code == "systemName";
});
this.systemName = obj.Value;
this.title = this.hospitalName + this.systemName;
}
The error seems to be at this line
return item.Code == "hospitalName";
Even after removing the following lines of code:
obj = (<any>systemConfigParse).find((item: any) => {
return item.Code == "hospitalName";
});
obj = (<any>systemConfigParse).find((item: any) => {
return item.Code == "systemName";
});
The error persists. Could this be caused by eslint? Any suggestions on how to troubleshoot and fix this issue would be greatly appreciated. Thank you in advance.