diff --git a/weave-js/src/components/Panel2/PanelStringHistogram.tsx b/weave-js/src/components/Panel2/PanelStringHistogram.tsx index 9bf8fccb54b6..9226bf2c6de6 100644 --- a/weave-js/src/components/Panel2/PanelStringHistogram.tsx +++ b/weave-js/src/components/Panel2/PanelStringHistogram.tsx @@ -169,7 +169,12 @@ const PanelStringHistogramInner: React.FC< const isColorable = colorNode.nodeType !== 'void'; const nodeValueQuery = CGReact.useNodeValue(props.input); const data = useMemo(() => { - if (nodeValueQuery.loading || (isColorable && colorNodeValue.loading)) { + const shouldEject = [ + nodeValueQuery.loading, + isColorable && colorNodeValue.loading, + nodeValueQuery.result == null, + ].some(Boolean); + if (shouldEject) { return []; } if (!isColorable) {