1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 21:33:18 +01:00

fix: removes empty stacks (#3071)

This commit is contained in:
Amir Raminfar
2024-07-06 14:22:32 -07:00
committed by GitHub
parent ad5d3e8e75
commit 6246b866d5
2 changed files with 3 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ fake_assets:
.PHONY: test .PHONY: test
test: fake_assets generate test: fake_assets generate
go test -cover -race -count 1 -timeout 5s ./... go test -cover -race -count 1 -timeout 20s ./...
.PHONY: build .PHONY: build
build: dist generate build: dist generate

View File

@@ -37,6 +37,8 @@ export const useSwarmStore = defineStore("swarm", () => {
newServices.push(new Service(name, containers)); newServices.push(new Service(name, containers));
} }
if (newServices.length === 0) continue;
newStacks.push(new Stack(name, containers, newServices)); newStacks.push(new Stack(name, containers, newServices));
} }
return newStacks; return newStacks;