Skip to content

Commit 143bfaf

Browse files
committed
fix: fixed broken test after over eslinting
1 parent 8d9bbc6 commit 143bfaf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/hooks/useBackgroundJobs.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ export const useBackgroundJobs = (): UseBackgroundJobsReturn => {
4545
const updateJob = useCallback(
4646
(id: string, updates: Partial<BackgroundJob>) => {
4747
setJobsMap((prev) => {
48+
if (!(id in prev)) {
49+
return prev
50+
}
4851
return {
4952
...prev,
5053
[id]: { ...prev[id], ...updates },

0 commit comments

Comments
 (0)