mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Update packages/web/lib/hooks/useHandleAddUrl.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
0927294546
commit
23014444f0
1 changed files with 1 additions and 4 deletions
|
|
@ -22,10 +22,7 @@ export const useHandleAddUrl = () => {
|
|||
return Promise.resolve()
|
||||
})
|
||||
|
||||
// Navigate to library after successful save
|
||||
setTimeout(() => {
|
||||
router.push('/home')
|
||||
}, 1000)
|
||||
// Navigation to /home is handled via the toast action callback
|
||||
} else {
|
||||
showErrorToast('Error saving url', { position: 'bottom-right' })
|
||||
throw new Error('Failed to save URL')
|
||||
|
|
|
|||
Loading…
Reference in a new issue