better nav on delete
This commit is contained in:
@@ -350,7 +350,6 @@ function WizardInner({
|
|||||||
|
|
||||||
const newRkey = new AtUri(res.uri).rkey
|
const newRkey = new AtUri(res.uri).rkey
|
||||||
|
|
||||||
// TODO hack?
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
navigation.replace('StarterPack', {
|
navigation.replace('StarterPack', {
|
||||||
name: currentAccount!.handle,
|
name: currentAccount!.handle,
|
||||||
@@ -376,15 +375,12 @@ function WizardInner({
|
|||||||
repo: currentAccount!.did,
|
repo: currentAccount!.did,
|
||||||
rkey: new AtUri(initialListUri).rkey,
|
rkey: new AtUri(initialListUri).rkey,
|
||||||
})
|
})
|
||||||
|
|
||||||
await agent.app.bsky.graph.starterpack.delete({
|
await agent.app.bsky.graph.starterpack.delete({
|
||||||
repo: currentAccount!.did,
|
repo: currentAccount!.did,
|
||||||
rkey,
|
rkey,
|
||||||
})
|
})
|
||||||
|
|
||||||
await invalidateQueries()
|
await invalidateQueries()
|
||||||
|
navigation.popToTop()
|
||||||
navigation.replace('Profile', {name: currentAccount!.handle})
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Toast.show(_(msg`Failed to delete starter pack`))
|
Toast.show(_(msg`Failed to delete starter pack`))
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user