diff --git a/web/apps/photos/src/components/WatchFolder.tsx b/web/apps/photos/src/components/WatchFolder.tsx index 812f54c6b..e99fbb007 100644 --- a/web/apps/photos/src/components/WatchFolder.tsx +++ b/web/apps/photos/src/components/WatchFolder.tsx @@ -153,12 +153,12 @@ const Title_ = styled("div")` `; interface WatchList { - watches: FolderWatch[]; + watches: FolderWatch[] | undefined; removeWatch: (watch: FolderWatch) => void; } const WatchList: React.FC = ({ watches, removeWatch }) => { - return watches.length === 0 ? ( + return (watches ?? []).length === 0 ? ( ) : (