Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(photos):show-loading-state-for-watched-folders

Aswin Asoke5c8b01d71d1
diff --git a/web/apps/photos/src/components/sidebar/WatchFolder.tsx b/web/apps/photos/src/components/sidebar/WatchFolder.tsx
index 3950171d4d..40863f6f48 100644
--- a/web/apps/photos/src/components/sidebar/WatchFolder.tsx
+++ b/web/apps/photos/src/components/sidebar/WatchFolder.tsx
@@ -222,7 +222,11 @@ const WatchList: React.FC<WatchListProps> = ({
removeWatch,
refreshWatches,
}) =>
- watches?.length ? (
+ watches === undefined ? (
+ <Stack sx={{ alignItems: "center", py: 2 }}>
+ <CircularProgress size={24} aria-label="Loading watched folders" />
+ </Stack>
+ ) : watches.length ? (
<Stack sx={{ gap: 1 }}>
{watches.map((watch) => (
<WatchEntry