Skip to content

Commit 18ee33c

Browse files
committed
some mall fix
1 parent 2d9a370 commit 18ee33c

File tree

1 file changed

+7
-0
lines changed
  • packages/app/src/pages/audit/file/instance

1 file changed

+7
-0
lines changed

packages/app/src/pages/audit/file/instance/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ export default function AuditInstancePage() {
153153
}
154154
}, [context.highlightedCytoscapeRef]);
155155

156+
// Hook to update the theme in the graph
157+
useEffect(() => {
158+
if (symbolVisualizer) {
159+
symbolVisualizer.updateTheme(theme);
160+
}
161+
}, [theme]);
162+
156163
return (
157164
<div className="relative w-full h-full">
158165
{/* This is the container for Cytoscape */}

0 commit comments

Comments
 (0)