Skip to content

Commit 5ceef4d

Browse files
twou12031travilyu
authored andcommitted
[bugfix] deepflow topo panel, node's background can't display when after 'No Data'
**Phenomenon and reproduction steps** none **Root cause and solution** none **Impactions** none **Test method** none **Affected branch(es)** - main **Checklist** - [ ] Dependencies update required - [ ] Common bug (similar problem in other repo)
1 parent 57b8d49 commit 5ceef4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deepflow-topo-panel/src/SimplePanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const SimplePanel: React.FC<Props> = ({ options, data, width, height }) =
8383
if (series[targetIndex]?.fields === undefined || !series[targetIndex]?.fields?.length) {
8484
setNoData(true)
8585
if (chartContainer) {
86-
chartContainer.selectAll('*').remove()
86+
chartContainer.select('g').remove()
8787
}
8888
return {
8989
fields: []

0 commit comments

Comments
 (0)