I am trying to remove or disable hyperlinks using syncfusion. I am not getting an error at compile time. I am however getting a runtime error that reads "core.mjs:9095 ERROR TypeError: Cannot read properties of undefined (setting'hyperlinkClick')"
private getSingleTest() {
if (!this.testId) return;
this.testService.getUrl(`get-test-with-file/${this.testId}`)
.subscribe((data) => {
this.test = data.test;
this.initForms(data.test);
if (data.file) {
const base64Url = 'data:application/pdf;base64,' + data.file;
//this.pdfViewer.removeHyperlink();
this.pdfViewer.hyperlinkClick = false;
this.pdfViewer.load(base64Url, '');
}
if (data.test) {
this.onGradeChange(data.test.sectorId)
}
});
}