Skip to content

Commit

Permalink
Merge pull request #266 from stakwork/fix/get-stack-first
Browse files Browse the repository at this point in the history
fix: use getconfig to display swarms instead of getConfigSortByUnhealthy
  • Loading branch information
tobi-bams authored Jul 29, 2024
2 parents 101a16d + 6b36877 commit db09b1b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/bin/super/superapp/src/Remotes.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@
}
}
onMount(() => {
getConfigSortByUnhealthy();
onMount(async () => {
await getConfig();
await getConfigSortByUnhealthy();
});
function openAddSwarmModal() {
Expand All @@ -98,7 +100,7 @@
});
message = response?.message;
if (response?.success === "true") {
await getConfigSortByUnhealthy();
await getConfig();
} else {
errorMessage = true;
}
Expand Down Expand Up @@ -176,7 +178,7 @@
if (response?.success === "true") {
//get config again
await getConfigSortByUnhealthy();
await getConfig();
//clear host, instance, description
clear_swarm_data();
Expand Down

0 comments on commit db09b1b

Please sign in to comment.