Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4779621

Browse files
authored
fix: Properly remove non matched workspaces (coder#2649)
1 parent 3312c81 commit 4779621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/xServices/workspaces/workspacesXService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export const workspacesMachine = createMachine(
307307
}
308308

309309
// Remove ref from the array
310-
workspaceRefs = workspaceRefs.filter((oldRef) => oldRef.id === ref.id)
310+
workspaceRefs = workspaceRefs.filter((oldRef) => oldRef.id !== ref.id)
311311
}
312312
}
313313

0 commit comments

Comments
 (0)