We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 84d455a + db17099 commit 596ab63Copy full SHA for 596ab63
1 file changed
frontend/src/components/maps/LayerPane/AnnotationsTabPanel.tsx
@@ -49,7 +49,6 @@ export default function AnnotationsTabPanel() {
49
error,
50
activate,
51
setEditingAnnotation,
52
- hoveredAnnotationId,
53
setHoveredAnnotationId,
54
toggleChecked,
55
updateStyle,
@@ -191,7 +190,7 @@ export default function AnnotationsTabPanel() {
191
190
const style = styles[annotation.id] || defaultAnnotationStyle;
192
const tags = annotation.tag_rows
193
.map((tr) => tr.tag?.name)
194
- .filter(Boolean);
+ .filter((t): t is string => Boolean(t));
195
196
return (
197
<div
0 commit comments