Skip to content

Commit b43e721

Browse files
🐛 [Frontend] Fix: Edit slides (#7832)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 0a8019d commit b43e721

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,8 @@ qx.Class.define("osparc.desktop.StudyEditor", {
536536
},
537537

538538
__editSlides: function() {
539-
if (this.getStudy().getUi().getMode() !== "workbench") {
540-
// if the user is not in "workbench" mode, return
539+
if (["app", "guided"].includes(this.getStudy().getUi().getMode())) {
540+
// if the user is in "app" mode, return
541541
return;
542542
}
543543

services/static-webserver/client/source/class/osparc/store/Services.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,14 @@ qx.Class.define("osparc.store.Services", {
389389
// if the one in the cache is the complete one, do not overwrite it
390390
if (
391391
this.__isInCache(key, version) &&
392+
this.__servicesCached[key][version] &&
392393
"history" in this.__servicesCached[key][version] // the most complete service metadata is already in cache
393394
) {
394395
return;
395396
}
396397
if (
397398
this.__isInCache(key, version) &&
399+
this.__servicesCached[key][version] &&
398400
"inputs" in this.__servicesCached[key][version] && // this is the second most complete service metadata (/latest)
399401
value && !("inputs" in value) // the one to be added is not more complete
400402
) {

0 commit comments

Comments
 (0)