fix(tui): handle move directory errors (#32226)

This commit is contained in:
Aiden Cline 2026-06-13 15:57:14 -05:00 committed by GitHub
parent 11fd6f8255
commit 252223a4a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,6 +73,13 @@ export function DialogMoveSession(props: {
)
const directories = await sdk.client.project.directories({ projectID }, { throwOnError: true })
return directories.data ?? []
} catch (error) {
toast.show({
variant: "error",
title: "Failed to load project directories",
message: errorMessage(error),
})
return []
} finally {
setWorking(false)
}