fix(swarm): fix service updates BE-11219 (#57)

pull/12336/head
andres-portainer 2024-10-23 18:23:24 -03:00 committed by GitHub
parent 3114d4b5c5
commit cc75167437
1 changed files with 2 additions and 1 deletions

View File

@ -56,11 +56,12 @@ function ServiceServiceFactory(AngularToReact) {
* @param {string?} rollback
*/
async function updateServiceAngularJS(environmentId, service, config, rollback) {
const data = await getServiceAngularJS(environmentId, service.Id);
return updateService({
environmentId,
config,
serviceId: service.Id,
version: service.Version,
version: data.Version,
registryId: config.registryId,
rollback,
});