diff --git a/sites/shared/components/workbench/draft/snippet/index.js b/sites/shared/components/workbench/draft/snippet/index.js index 2c6f1ea9e6f..1c58594c97b 100644 --- a/sites/shared/components/workbench/draft/snippet/index.js +++ b/sites/shared/components/workbench/draft/snippet/index.js @@ -3,7 +3,7 @@ import { getProps } from '../utils' import { Tr, KeyTd, ValTd, Attributes, pointCoords } from '../path/index' const snippetInfo = (props) => { -console.log(props.snippet) + return (
Snippet info
@@ -46,6 +46,7 @@ console.log(props.snippet) } const Snippet = (props) => { + if (!props.snippet?.anchor) return null const snippetProps = { xlinkHref: '#' + props.snippet.def, x: props.snippet.anchor.x,