diff --git a/example/src/examples/Annotations/PointAnnotationAnchors.js b/example/src/examples/Annotations/PointAnnotationAnchors.js index 4184e9e524..87d9a6f1c2 100644 --- a/example/src/examples/Annotations/PointAnnotationAnchors.js +++ b/example/src/examples/Annotations/PointAnnotationAnchors.js @@ -81,7 +81,7 @@ const PointAnnotationAnchors = (props) => { coordinate={p.coordinate} anchor={p.anchor} > - + x={p.anchor.x.toPrecision(2)}, y={p.anchor.y.toPrecision(2)} @@ -103,7 +103,7 @@ const PointAnnotationAnchors = (props) => { coordinate={p.coordinate} anchor={p.anchor} > - + React.isValidElement(c) && c.type === Callout, + ); + const content = children.filter((c) => c !== callout); + return ( // @ts-expect-error just codegen stuff - {this.props.children} + {content} + {callout} ); }