Debug code
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
getLocalFiles,
|
||||
getLocalTrashedFiles,
|
||||
} from "@/new/photos/services/files";
|
||||
import { wipClusterEnable } from "@/new/photos/services/ml";
|
||||
import { EnteFile } from "@/new/photos/types/file";
|
||||
import { mergeMetadata } from "@/new/photos/utils/file";
|
||||
import { CenteredFlex } from "@ente/shared/components/Container";
|
||||
@@ -669,6 +670,17 @@ export default function Gallery() {
|
||||
};
|
||||
}, [selectAll, clearSelection]);
|
||||
|
||||
useEffect(() => {
|
||||
// TODO-Cluster
|
||||
if (process.env.NEXT_PUBLIC_ENTE_WIP_CL) {
|
||||
setTimeout(() => {
|
||||
void wipClusterEnable().then(
|
||||
(y) => y && router.push("cluster-debug"),
|
||||
);
|
||||
}, 2000);
|
||||
}
|
||||
}, []);
|
||||
|
||||
const fileToCollectionsMap = useMemoSingleThreaded(() => {
|
||||
return constructFileToCollectionMap(files);
|
||||
}, [files]);
|
||||
|
||||
Reference in New Issue
Block a user