Skip to content

Commit f7935de

Browse files
committed
fix: ts error fixes ib user online stats
1 parent ac874fa commit f7935de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dashboard/src/components/dialogs/UserOnlineStatsModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ export default function UserOnlineStatsModal({ isOpen, onOpenChange, nodeId, nod
371371
} else if (typeof userIPs === 'object' && Object.keys(userIPs).length === 1 && !isNaN(Number(Object.keys(userIPs)[0]))) {
372372
// If userIPs is an object with a single numeric key, use its value
373373
const onlyKey = Object.keys(userIPs)[0]
374-
const ipMap = userIPs[onlyKey]
374+
const ipMap = (userIPs as any)[onlyKey]
375375
if (typeof ipMap === 'object' && ipMap !== null) {
376376
Object.entries(ipMap).forEach(([ip, timestamp]) => {
377377
if (!transformedData[ip]) transformedData[ip] = []

0 commit comments

Comments
 (0)