fix: prevent unnecessary loading state in TaskListSidebar during thread re-fetch (#128)

* Apply patch

* cr
This commit is contained in:
Brace Sproul 2025-06-11 18:10:20 -07:00 • committed by GitHub
parent 38fc7f9cbd
commit 13518b7269
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,7 +61,7 @@ export default function TaskListSidebar({ onCollapse }: TaskListSidebarProps) {
</div>
<div className="flex-1 overflow-hidden">
{threadsLoading ? (
{threadsLoading && threads.length === 0 ? (
<div className="flex h-full items-center justify-center">
<div className="text-center text-gray-500">
<Archive className="mx-auto mb-2 h-5 w-5 animate-pulse opacity-50" />