diff --git a/api/http/handler/edgestacks/edgestack_update.go b/api/http/handler/edgestacks/edgestack_update.go index c748685d6..eb4603aa0 100644 --- a/api/http/handler/edgestacks/edgestack_update.go +++ b/api/http/handler/edgestacks/edgestack_update.go @@ -192,7 +192,10 @@ func (handler *Handler) edgeStackUpdate(w http.ResponseWriter, r *http.Request) } stack.NumDeployments = len(relatedEndpointIds) - stack.Status = make(map[portainer.EndpointID]portainer.EdgeStackStatus) + + if versionUpdated { + stack.Status = make(map[portainer.EndpointID]portainer.EdgeStackStatus) + } err = handler.DataStore.EdgeStack().UpdateEdgeStack(stack.ID, stack) if err != nil {