Skip to content

Commit 596ab63

Browse files
authored
Merge pull request #336 from hancocb/fix/annotation-ts-errors
[Fix] TypeScript errors in AnnotationsTabPanel
2 parents 84d455a + db17099 commit 596ab63

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

frontend/src/components/maps/LayerPane/AnnotationsTabPanel.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export default function AnnotationsTabPanel() {
4949
error,
5050
activate,
5151
setEditingAnnotation,
52-
hoveredAnnotationId,
5352
setHoveredAnnotationId,
5453
toggleChecked,
5554
updateStyle,
@@ -191,7 +190,7 @@ export default function AnnotationsTabPanel() {
191190
const style = styles[annotation.id] || defaultAnnotationStyle;
192191
const tags = annotation.tag_rows
193192
.map((tr) => tr.tag?.name)
194-
.filter(Boolean);
193+
.filter((t): t is string => Boolean(t));
195194

196195
return (
197196
<div

0 commit comments

Comments
 (0)