fix: guard add repo parent picker state (#3632)

This commit is contained in:
Neil
2026-05-30 04:17:04 -07:00
committed by GitHub
parent 7091f5b2b9
commit 311284af4a
@@ -55,8 +55,9 @@ export function useCreateRepo(
toast.error('Enter a server parent path.')
return
}
const gen = createGenRef.current
const dir = await window.api.repos.pickDirectory()
if (dir) {
if (dir && gen === createGenRef.current) {
setCreateParent(dir)
setCreateError(null)
}