mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-27 15:22:56 +08:00
fix expand not working
This commit is contained in:
parent
fc65d2ef88
commit
31a57d4f4f
@ -136,7 +136,7 @@ export const Graph = ({ isWidget = false }: { isWidget?: boolean }) => {
|
|||||||
const nodeList = collapsedNodes.map((id) => `[id*="node-${id}"]`);
|
const nodeList = collapsedNodes.map((id) => `[id*="node-${id}"]`);
|
||||||
const edgeList = collapsedEdges.map((id) => `[class*="edge-${id}"]`);
|
const edgeList = collapsedEdges.map((id) => `[class*="edge-${id}"]`);
|
||||||
|
|
||||||
const hiddenItems = document.querySelectorAll("hide");
|
const hiddenItems = document.querySelectorAll(".hide");
|
||||||
hiddenItems.forEach((item) => item.classList.remove("hide"));
|
hiddenItems.forEach((item) => item.classList.remove("hide"));
|
||||||
|
|
||||||
if (nodeList.length) {
|
if (nodeList.length) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user