Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

lint

Anand Baburajanb74babde8301
diff --git a/web/packages/gallery/components/viewer/FileViewer.tsx b/web/packages/gallery/components/viewer/FileViewer.tsx
index 5dc47260ff..8bb5d9a9b2 100644
--- a/web/packages/gallery/components/viewer/FileViewer.tsx
+++ b/web/packages/gallery/components/viewer/FileViewer.tsx
@@ -1524,7 +1524,12 @@ export const FileViewer: React.FC<FileViewerProps> = ({
if (collectionSummary?.attributes.has("shared")) return true;
}
return false;
- }, [haveUser, isCommentsFeatureEnabled, activeCollectionID, collectionSummaries]);
+ }, [
+ haveUser,
+ isCommentsFeatureEnabled,
+ activeCollectionID,
+ collectionSummaries,
+ ]);
// Check if a file belongs to any shared collection (for gallery view).
const isFileInSharedCollection = useCallback(
@@ -1558,7 +1563,11 @@ export const FileViewer: React.FC<FileViewerProps> = ({
return isFileInSharedCollection(file.id);
},
- [isCommentsFeatureEnabled, isFileInSharedCollection, activeCollectionID],
+ [
+ isCommentsFeatureEnabled,
+ isFileInSharedCollection,
+ activeCollectionID,
+ ],
);
// Compute shared albums the file belongs to and which are liked for the modal
diff --git a/web/packages/new/photos/services/collection.ts b/web/packages/new/photos/services/collection.ts
index ae0303e5a4..0b3cc1d0d0 100644
--- a/web/packages/new/photos/services/collection.ts
+++ b/web/packages/new/photos/services/collection.ts
@@ -1,5 +1,4 @@
import { ensureLocalUser } from "ente-accounts/services/user";
-import { settingsSnapshot } from "./settings";
import { blobCache } from "ente-base/blob-cache";
import {
boxSeal,
@@ -50,6 +49,7 @@ import {
savedCollections,
savedCollectionsUpdationTime,
} from "./photos-fdb";
+import { settingsSnapshot } from "./settings";
import { ensureUserKeyPair, getPublicKey } from "./user";
const uncategorizedCollectionName = "Uncategorized";
@@ -1462,11 +1462,7 @@ export const createPublicURL = async (
const res = await fetch(await apiURL("/collections/share-url"), {
method: "POST",
headers: await authenticatedRequestHeaders(),
- body: JSON.stringify({
- collectionID,
- enableComment,
- ...attributes,
- }),
+ body: JSON.stringify({ collectionID, enableComment, ...attributes }),
});
ensureOk(res);
return z.object({ result: RemotePublicURL }).parse(await res.json()).result;