Skip to content

Commit fb0780d

Browse files
committed
prevent reloading of window on form submit
1 parent 6b974a8 commit fb0780d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

forms/BulkCoupon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class BulkCouponForm extends React.Component {
118118
type: "success",
119119
showConfirmButton: true
120120
}).then(() => {
121-
window.location = `${config.domain}/admin/coupons2`;
121+
// window.location = `${config.domain}/admin/coupons2`;
122122
});
123123
}).catch((error) => {
124124
Swal.fire({
@@ -536,4 +536,4 @@ class BulkCouponForm extends React.Component {
536536
}
537537
}
538538

539-
export default BulkCouponForm
539+
export default BulkCouponForm

0 commit comments

Comments
 (0)