redirect to new feed after subscribe now works even for existing feeds

This commit is contained in:
Athou
2022-08-13 18:53:34 +02:00
parent 9ec62bc1de
commit 4e5fd18eea
5 changed files with 14 additions and 15 deletions

View File

@@ -41,7 +41,7 @@ export function Subscribe() {
const subscribe = useAsyncCallback(client.feed.subscribe, {
onSuccess: sub => {
dispatch(reloadTree())
dispatch(redirectToFeed(sub.data.id))
dispatch(redirectToFeed(sub.data))
},
})