mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 13:23:07 +01:00
fix: removes empty stacks (#3071)
This commit is contained in:
2
Makefile
2
Makefile
@@ -22,7 +22,7 @@ fake_assets:
|
||||
|
||||
.PHONY: test
|
||||
test: fake_assets generate
|
||||
go test -cover -race -count 1 -timeout 5s ./...
|
||||
go test -cover -race -count 1 -timeout 20s ./...
|
||||
|
||||
.PHONY: build
|
||||
build: dist generate
|
||||
|
||||
@@ -37,6 +37,8 @@ export const useSwarmStore = defineStore("swarm", () => {
|
||||
newServices.push(new Service(name, containers));
|
||||
}
|
||||
|
||||
if (newServices.length === 0) continue;
|
||||
|
||||
newStacks.push(new Stack(name, containers, newServices));
|
||||
}
|
||||
return newStacks;
|
||||
|
||||
Reference in New Issue
Block a user