Skip to content

Commit

Permalink
reuse isUpdatable
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz committed Aug 9, 2024
1 parent 6027aa7 commit 151ab88
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ qx.Class.define("osparc.study.Utils", {

isWorkbenchUpdatable: function(workbench) {
const services = new Set(this.extractServices(workbench));
const isUpdatable = Array.from(services).some(srv => {
return osparc.service.Utils.getLatestCompatible(srv.key, srv.version) !== null;
});
const isUpdatable = Array.from(services).some(srv => osparc.service.Utils.isUpdatable(srv));
return isUpdatable;
},

Expand Down

0 comments on commit 151ab88

Please sign in to comment.