Skip to content

Commit e883e05

Browse files
committed
fix(sidebar): show skeleton on tasks error state, not 'New task' placeholder
1 parent cb8ea3a commit e883e05

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/w/components/sidebar

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/sidebar.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,12 @@ export const Sidebar = memo(function Sidebar() {
781781
)
782782
}, [isOnWorkflowPage])
783783

784-
const { data: fetchedTasks = [], isLoading: tasksLoading } = useTasks(workspaceId)
784+
const {
785+
data: fetchedTasks = [],
786+
isPending: tasksPending,
787+
isError: tasksError,
788+
} = useTasks(workspaceId)
789+
const tasksLoading = tasksPending || tasksError
785790

786791
useTaskEvents(workspaceId)
787792

0 commit comments

Comments
 (0)