Skip to content

Commit

Permalink
In case if the user already chosen a node and reloded the noded, the …
Browse files Browse the repository at this point in the history
…old selected node will be picked
  • Loading branch information
maayarosama committed Dec 18, 2024
1 parent 8bf258d commit 606fa06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playground/src/utils/nodeSelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export async function selectValidNode(
}

if (oldSelectedNodeId || rentedNode) {
const node = rentedNode || nodes.find(n => n.nodeId === oldSelectedNodeId);
const node = nodes.find(n => n.nodeId === oldSelectedNodeId) || rentedNode;

if (node && isNodeValid(getFarm, node, selectedMachines, filters)) {
if (nodesLock && !locked) {
Expand Down

0 comments on commit 606fa06

Please sign in to comment.