We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d5548a commit 4d3706bCopy full SHA for 4d3706b
src/components/gtt-client/init/events.ts
@@ -67,13 +67,20 @@ function handleIssueSelection(this: any): void {
67
const currentTarget = evt.currentTarget as HTMLTableRowElement;
68
const id = currentTarget.id.split('-')[1];
69
const feature = this.vector.getSource().getFeatureById(id);
70
+
71
+ // Skip the click handler when there is no vector feature
72
+ if (!feature) {
73
+ return;
74
+ }
75
76
this.map.getView().fit(feature.getGeometry().getExtent(), {
77
size: this.map.getSize(),
78
});
79
80
81
}
82
83
84
/**
85
* Handles the click event on the edit icon to update the map size when the editable form is made visible.
86
*/
0 commit comments