fix double posting on slow connections
This commit is contained in:
parent
f85b9a3a1d
commit
d40b0ae063
@ -69,9 +69,9 @@ export function DiscussionForm ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (item) {
|
if (item) {
|
||||||
router.push(`/items/${item.id}`)
|
await router.push(`/items/${item.id}`)
|
||||||
} else {
|
} else {
|
||||||
router.push('/recent')
|
await router.push('/recent')
|
||||||
}
|
}
|
||||||
})}
|
})}
|
||||||
storageKeyPrefix={item ? undefined : 'discussion'}
|
storageKeyPrefix={item ? undefined : 'discussion'}
|
||||||
|
@ -137,9 +137,9 @@ export default function JobForm ({ item, sub }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (item) {
|
if (item) {
|
||||||
router.push(`/items/${item.id}`)
|
await router.push(`/items/${item.id}`)
|
||||||
} else {
|
} else {
|
||||||
router.push(`/~${sub.name}/recent`)
|
await router.push(`/~${sub.name}/recent`)
|
||||||
}
|
}
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
|
@ -100,9 +100,9 @@ export function LinkForm ({ item, editThreshold }) {
|
|||||||
throw new Error({ message: error.toString() })
|
throw new Error({ message: error.toString() })
|
||||||
}
|
}
|
||||||
if (item) {
|
if (item) {
|
||||||
router.push(`/items/${item.id}`)
|
await router.push(`/items/${item.id}`)
|
||||||
} else {
|
} else {
|
||||||
router.push('/recent')
|
await router.push('/recent')
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
storageKeyPrefix={item ? undefined : 'link'}
|
storageKeyPrefix={item ? undefined : 'link'}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user