We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 23bd705 + 6d7e0e7 commit e4585c2Copy full SHA for e4585c2
1 file changed
src/display/annotation_layer.js
@@ -215,15 +215,15 @@ class AnnotationElement {
215
}
216
217
let popup = this.#popupElement?.popup || this.popup;
218
- if (!popup && newPopup.text) {
+ if (!popup && newPopup?.text) {
219
this._createPopup(newPopup);
220
popup = this.#popupElement.popup;
221
222
if (!popup) {
223
return;
224
225
popup.updateEdited(params);
226
- if (newPopup.deleted) {
+ if (newPopup?.deleted) {
227
popup.remove();
228
this.#popupElement = null;
229
this.popup = null;
0 commit comments