π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix incorrect typecheck that fails on undefined
Manav Rathief4462553c05
diff --git a/web/apps/photos/src/services/machineLearning/mlWorkManager.ts b/web/apps/photos/src/services/machineLearning/mlWorkManager.tsindex d62d6f829e..c5df14b224 100644--- a/web/apps/photos/src/services/machineLearning/mlWorkManager.ts+++ b/web/apps/photos/src/services/machineLearning/mlWorkManager.ts@@ -186,8 +186,7 @@ class MLWorkManager {return mlWorker.syncLocalFile(token, userID, enteFile, localFile);});- // @ts-expect-error "TODO: Fix ML related type errors"- if ("message" in result) {+ if (result instanceof Error) {// TODO: redirect/refresh to gallery in case of session_expired// may not be required as uploader should anyways take care of thisconsole.error("Error while syncing local file: ", result);