Skip to content

Commit

Permalink
fix select node to not be invalid when mounted (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaaElattar authored Aug 24, 2023
1 parent af7a9f9 commit 8b03b3c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/playground/src/components/select_node.vue
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,13 @@ async function loadNodes(farmId: number) {
}
}
availableNodes.value = nodesArr.value;
selectedNode.value = undefined;
} else {
selectedNode.value = undefined;
availableNodes.value = [];
}
} catch (e) {
errorMessage.value = normalizeError(e, "Something went wrong while fetching nodes.");
} finally {
validator.value?.setStatus(ValidatorStatus.Invalid);
validator.value?.setStatus(ValidatorStatus.Init);
loadingNodes.value = false;
farmManager?.setLoading(false);
}
Expand Down

0 comments on commit 8b03b3c

Please sign in to comment.