diff --git a/apps/renderer/src/modules/entry-column/index.tsx b/apps/renderer/src/modules/entry-column/index.tsx index b2bd89d87..cf5f44227 100644 --- a/apps/renderer/src/modules/entry-column/index.tsx +++ b/apps/renderer/src/modules/entry-column/index.tsx @@ -171,10 +171,10 @@ function EntryColumnImpl() { // automatically fetch archived entries when there is no entries in timeline useEffect(() => { - if (!isArchived && virtuosoOptions.totalCount === 0 && !entries.isLoading) { + if (showArchivedButton && virtuosoOptions.totalCount === 0 && !entries.isLoading) { setIsArchived(true) } - }, [entries.isLoading, isArchived, virtuosoOptions.totalCount]) + }, [entries.isLoading, showArchivedButton, virtuosoOptions.totalCount]) return (