run prettier

This commit is contained in:
lucataglia 2023-05-18 15:50:14 +02:00
parent 2ce1388494
commit 583749467d

View File

@ -119,14 +119,13 @@ export default function JSONNestedNode(props: Props) {
isCircular ? false : shouldExpandNodeInitially(keyPath, data, level) isCircular ? false : shouldExpandNodeInitially(keyPath, data, level)
); );
useEffect(() => { useEffect(() => {
if(shouldExpandNode === undefined){ if (shouldExpandNode === undefined) {
return return;
} }
setExpanded(shouldExpandNode); setExpanded(shouldExpandNode);
}, [shouldExpandNode]) }, [shouldExpandNode]);
const handleClick = useCallback(() => { const handleClick = useCallback(() => {
if (expandable) setExpanded(!expanded); if (expandable) setExpanded(!expanded);