Skip to content

Commit

Permalink
fix(ONYX-167): navigate to my collection after deleting artwork (#9062)
Browse files Browse the repository at this point in the history
fix: dismiss artwork form after deleting an artwork
  • Loading branch information
MounirDhahri authored Jul 26, 2023
1 parent aaf1939 commit 260d04a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { MyCollectionArtworkStore } from "app/Scenes/MyCollection/Screens/Artwor
import { myCollectionDeleteArtwork } from "app/Scenes/MyCollection/mutations/myCollectionDeleteArtwork"
import { Currency } from "app/Scenes/Search/UserPrefsModel"
import { GlobalStore } from "app/store/GlobalStore"
import { goBack, popToRoot } from "app/system/navigation/navigate"
import { dismissModal, goBack, popToRoot } from "app/system/navigation/navigate"
import { ArtsyKeyboardAvoidingView } from "app/utils/ArtsyKeyboardAvoidingView"
import { artworkMediumCategories } from "app/utils/artworkMediumCategories"
import { useFeatureFlag } from "app/utils/hooks/useFeatureFlag"
Expand Down Expand Up @@ -200,6 +200,7 @@ export const MyCollectionArtworkFormMain: React.FC<
await myCollectionDeleteArtwork(artwork.internalID)
}
refreshMyCollection()
dismissModal()
popToRoot()
} catch (e) {
if (__DEV__) {
Expand Down

0 comments on commit 260d04a

Please sign in to comment.