mirror of
https://github.com/stablyai/orca.git
synced 2026-10-06 08:02:28 +00:00
fix: guard add repo parent picker state (#3632)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user