fix: stop ticket detail effects from self-canceling on loading toggles
This commit is contained in:
parent
9ce288a3a2
commit
9054c252ab
1 changed files with 2 additions and 2 deletions
|
|
@ -157,7 +157,7 @@ export default function TicketDetail() {
|
||||||
return () => {
|
return () => {
|
||||||
cancelled = true;
|
cancelled = true;
|
||||||
};
|
};
|
||||||
}, [tab, worktree?.id, worktree?.status, branchesLoading, branchesLoadedForWorktreeId]);
|
}, [tab, worktree?.id, worktree?.status, branchesLoadedForWorktreeId]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (tab !== "diff") return;
|
if (tab !== "diff") return;
|
||||||
|
|
@ -189,7 +189,7 @@ export default function TicketDetail() {
|
||||||
return () => {
|
return () => {
|
||||||
cancelled = true;
|
cancelled = true;
|
||||||
};
|
};
|
||||||
}, [tab, worktree?.id, worktree?.status, diff, diffLoading]);
|
}, [tab, worktree?.id, worktree?.status, diff]);
|
||||||
|
|
||||||
async function handleRetry() {
|
async function handleRetry() {
|
||||||
if (!ticketId) return;
|
if (!ticketId) return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue