Skip to content

Commit 5d6c1be

Browse files
committed
Check isMovingFromParent
1 parent 1657289 commit 5d6c1be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

WooCommerce/Classes/ViewRelated/Products/Edit Product/Product Settings/Menu Order/ProductMenuOrderViewController.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ final class ProductMenuOrderViewController: UIViewController {
3939

4040
override func viewWillDisappear(_ animated: Bool) {
4141
super.viewWillDisappear(animated)
42-
onCompletion(productSettings)
42+
if isMovingFromParent {
43+
onCompletion(productSettings)
44+
}
4345
}
4446

4547
override func viewDidAppear(_ animated: Bool) {

0 commit comments

Comments
 (0)