-
Notifications
You must be signed in to change notification settings - Fork 32
🐛 [Frontend] Fix: Edit slides #7832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses a frontend bug where editing slides was incorrectly enabled/disabled based on the study mode.
- In Services.js, additional truthiness checks were added to prevent overwriting complete cached entries.
- In StudyEditor.js, the conditional for editing slides was modified to correctly restrict editing in "app" and "guided" modes.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| services/static-webserver/client/source/class/osparc/store/Services.js | Added explicit truthiness checks to safeguard against overwriting complete cache entries. |
| services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js | Adjusted the condition to restrict editing slides when the mode is "app" or "guided". |
Comments suppressed due to low confidence (2)
services/static-webserver/client/source/class/osparc/store/Services.js:392
- Consider adding a comment to clarify why an explicit truthiness check for this.__servicesCached[key][version] is necessary, even though __isInCache() verifies key and version exist.
this.__servicesCached[key][version] &&
services/static-webserver/client/source/class/osparc/desktop/StudyEditor.js:539
- The inline comment should be updated to accurately reflect that the condition checks for both 'app' and 'guided' modes, not just 'app'.
if (["app", "guided"].includes(this.getStudy().getUi().getMode())) {
|
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at b43e721 |
|



What do these changes do?
reported by @Konohana0608
Fixed:

Related issue/s
How to test
Dev-ops