1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-27 15:41:45 +01:00

fix: clears all containers on reconnect and removes stale old ones (#2414)

This commit is contained in:
Amir Raminfar
2023-10-07 14:35:23 -07:00
committed by GitHub
parent ae1c0207de
commit 194fcd0dea

View File

@@ -76,6 +76,12 @@ export const useContainerStore = defineStore("container", () => {
}
});
es.onopen = () => {
if (containers.value.length > 0) {
containers.value = [];
}
};
watchOnce(containers, () => (ready.value = true));
}