Skip to content

Commit

Permalink
fix: typescript failure
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrauber committed Oct 3, 2024
1 parent a0f0586 commit d4f3be2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion javascript/components/annotations/Annotation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ const Annotation = React.forwardRef<AnnotationRef, AnnotationProps>(

const children = [];
const symbolStyle: SymbolLayerStyleProps | undefined = props.icon
? { ...props.style, iconImage: props.icon }
? {
...props.style,
iconImage: typeof props.icon === "string" ? props.icon : undefined,
}
: undefined;

if (symbolStyle) {
Expand Down

0 comments on commit d4f3be2

Please sign in to comment.