错误TypeError:无法在SafeSubscriber._next读取未定义的属性“消息”

时间:2019-10-04 05:48:53

标签: typescript bootstrap-modal typeerror angular8

enter image description here ClientCommunicationItems(){         this.busy = this.clientService.getClientCommunication(this.clientID).subscribe(result => {

        if (result.length > 0) {
            this.communicationItems = result;
            this.showRecords = true;
        }
        else
            this.showRecords = false;

        if (this.communicationItems[0].message.includes("<html") || this.communicationItems[0].message.includes("<div")) {
            this.loadHtml = true;
        }
        else
            this.loadHtml = false;
        console.log(this.communicationItems);
    })
}

0 个答案:

没有答案