Fix potential error when deleting remote files in sync manager

This commit is contained in:
Kj 2025-07-09 20:52:53 +09:00
parent 2ebd201da9
commit 54e538caae
No known key found for this signature in database
GPG key ID: A2C8559871A3DB6B

View file

@ -543,7 +543,9 @@ export default class SyncManager {
break;
}
case "delete_remote": {
newTreeFiles[action.filePath].sha = null;
if (newTreeFiles[action.filePath]) {
newTreeFiles[action.filePath].sha = null;
}
break;
}
case "download":