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:
@@ -76,6 +76,12 @@ export const useContainerStore = defineStore("container", () => {
|
||||
}
|
||||
});
|
||||
|
||||
es.onopen = () => {
|
||||
if (containers.value.length > 0) {
|
||||
containers.value = [];
|
||||
}
|
||||
};
|
||||
|
||||
watchOnce(containers, () => (ready.value = true));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user