-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[PM-8050] Deleting one folder deletes all other folders #10165
Conversation
No New Or Fixed Issues Found |
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.
Nice catch on this bug! Just one unrelated question to the onDeletedFolder
event emitter.
@@ -137,16 +137,14 @@ export class FolderService implements InternalFolderServiceAbstraction { | |||
return; | |||
} | |||
|
|||
if (typeof id === "string") { | |||
if (folders[id] == null) { | |||
return; |
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.
👍 Wow, nice catch on this one!
3b6e6b4
to
622e02f
Compare
🎟️ Tracking
PM-8050
📔 Objective
Deleting a folder should not clear all folders on the client. There seems to be a malfunction with
SyncService.syncDeleteFolder
, which tries to sync the web client after a folder has been deleted on the web client. Previously, we returned whenfolders[id] == null
, which clears the folder state.📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes