Avoid dotPath confusions
This commit is contained in:
@@ -24,7 +24,7 @@ function ChartPreview(props: Props) {
|
|||||||
const onClick = React.useCallback(() => {
|
const onClick = React.useCallback(() => {
|
||||||
props.actions.chart.addChart({
|
props.actions.chart.addChart({
|
||||||
topic: props.treeNode.path(),
|
topic: props.treeNode.path(),
|
||||||
dotPath: props.literal.path,
|
dotPath: props.literal.path !== '' ? props.literal.path : undefined,
|
||||||
})
|
})
|
||||||
setOpen(false)
|
setOpen(false)
|
||||||
}, [props.literal.path, props.treeNode])
|
}, [props.literal.path, props.treeNode])
|
||||||
|
|||||||
Reference in New Issue
Block a user