Commit 1d4f4a0
committed
perf(chat): stop the resource picker fetching schedules it no longer shows
Dropping the `scheduledtask` group from the add-resource dropdown left
`useWorkspaceSchedules` behind, so the picker still issued a workspace
schedules request whose result never reached a group.
Worse than a wasted request: `schedulesPending` was still in the hydration
gate, so the whole picker waited on that response before it could settle, and
`schedules` was still a `useMemo` dependency, re-running the group build when
it resolved.
The hook and its route stay — `/api/schedules?workspaceId=` still correctly
lists workflow schedules, unlike `createScheduleContract`, whose route this
branch removed.1 parent c61770a commit 1d4f4a0
1 file changed
Lines changed: 0 additions & 6 deletions
File tree
- apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/add-resource-dropdown
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | 174 | | |
179 | 175 | | |
180 | 176 | | |
| |||
201 | 197 | | |
202 | 198 | | |
203 | 199 | | |
204 | | - | |
205 | 200 | | |
206 | 201 | | |
207 | 202 | | |
| |||
312 | 307 | | |
313 | 308 | | |
314 | 309 | | |
315 | | - | |
316 | 310 | | |
317 | 311 | | |
318 | 312 | | |
| |||
0 commit comments