Fixed an issue where graphical explain keeps the node details open even after plan changed. #7993

This commit is contained in:
Aditya Toshniwal
2024-10-10 10:50:11 +05:30
parent 509c696aa3
commit 8c45dea975
2 changed files with 6 additions and 1 deletions

View File

@@ -414,6 +414,10 @@ export default function Graphical({planData, ctx}) {
setExplainPlanDetails([title, details]);
}, []);
useEffect(()=>{
setExplainPlanDetails([null, null]);
}, [planData]);
return (
<StyledBox ref={graphContainerRef} height="100%" width="100%" overflow="auto">
<Box position="absolute" top="4px" left="4px" gap="4px" display="flex">