diff --git a/python/ray/dashboard/client/src/pages/dashboard/logical-view/Actors.tsx b/python/ray/dashboard/client/src/pages/dashboard/logical-view/Actors.tsx index 20e21673e..ecd2d63c7 100644 --- a/python/ray/dashboard/client/src/pages/dashboard/logical-view/Actors.tsx +++ b/python/ray/dashboard/client/src/pages/dashboard/logical-view/Actors.tsx @@ -8,8 +8,8 @@ type ActorProps = { const Actors = (props: ActorProps) => { const { actors } = props; - const actorChildren = Object.values(actors) - .sort((actor1, actor2) => { + const actorChildren = Object.entries(actors) + .sort(([, actor1], [, actor2]) => { if ( actor1.state === ActorState.Dead && actor2.state === ActorState.Dead @@ -21,7 +21,7 @@ const Actors = (props: ActorProps) => { return 1; } }) - .map((actor) => ); + .map(([aid, actor]) => ); return {actorChildren}; };