Skip to content

Commit 74d62a4

Browse files
7Jerrybfclaude
andcommitted
fix(web): correct type assertion for MiniMap nodeColor
Use double assertion (as unknown as) to satisfy TypeScript strict mode Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4f1ee4e commit 74d62a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/components/TopologyGraph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export function TopologyGraph({ data, onNodeClick }: TopologyGraphProps) {
139139
<Controls className="!bg-white !border-slate-200 !shadow-md" />
140140
<MiniMap
141141
nodeColor={(node) => {
142-
const nodeData = node.data as TopologyNodeData | undefined;
142+
const nodeData = node.data as unknown as TopologyNodeData | undefined;
143143
switch (nodeData?.type) {
144144
case 'COMPONENT':
145145
return '#10b981';

0 commit comments

Comments
 (0)