|
@@ -956,17 +956,17 @@ class ComPDFAnnotationLayer {
|
|
|
if (this.annotations && this.annotations.length) {
|
|
|
const annotation = this.annotations.find((element) => element.name === this.annotationStore.selectedElementName)
|
|
|
if (annotation) {
|
|
|
- if (annotation.type.replace('-', '') === 'textfield') {
|
|
|
+ if (annotation.type?.replace('-', '') === 'textfield') {
|
|
|
this.eventBus.dispatch("textfieldPropertyPanelChanged", props);
|
|
|
- } else if (annotation.type.replace('-', '') === 'checkbox') {
|
|
|
+ } else if (annotation.type?.replace('-', '') === 'checkbox') {
|
|
|
this.eventBus.dispatch("checkboxPropertyPanelChanged", props);
|
|
|
- } else if (annotation.type.replace('-', '') === 'radiobutton') {
|
|
|
+ } else if (annotation.type?.replace('-', '') === 'radiobutton') {
|
|
|
this.eventBus.dispatch("radioButtonPropertyPanelChanged", props);
|
|
|
- } else if (annotation.type.replace('-', '') === 'pushbutton') {
|
|
|
+ } else if (annotation.type?.replace('-', '') === 'pushbutton') {
|
|
|
this.eventBus.dispatch("pushButtonPropertyPanelChanged", props);
|
|
|
- } else if (annotation.type.replace('-', '') === 'listbox') {
|
|
|
+ } else if (annotation.type?.replace('-', '') === 'listbox') {
|
|
|
this.eventBus.dispatch("listBoxPropertyPanelChanged", props);
|
|
|
- } else if (annotation.type.replace('-', '') === 'combobox') {
|
|
|
+ } else if (annotation.type?.replace('-', '') === 'combobox') {
|
|
|
this.eventBus.dispatch("comboBoxPropertyPanelChanged", props);
|
|
|
}
|
|
|
}
|