@visns-studio/visns-components 2.7.13 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/crm/Form.jsx +8 -0
- package/package.json +1 -1
package/components/crm/Form.jsx
CHANGED
|
@@ -495,6 +495,10 @@ function Form({
|
|
|
495
495
|
toast.success(
|
|
496
496
|
'Entry successfully saved into the system.'
|
|
497
497
|
);
|
|
498
|
+
|
|
499
|
+
if (result.redirect) {
|
|
500
|
+
navigate(result.redirect);
|
|
501
|
+
}
|
|
498
502
|
} else {
|
|
499
503
|
toast.error(
|
|
500
504
|
<div>
|
|
@@ -531,6 +535,10 @@ function Form({
|
|
|
531
535
|
) {
|
|
532
536
|
navigate(formSettings.redirect + result.data.id);
|
|
533
537
|
}
|
|
538
|
+
|
|
539
|
+
if (result.redirect) {
|
|
540
|
+
navigate(result.redirect);
|
|
541
|
+
}
|
|
534
542
|
} else {
|
|
535
543
|
toast.error(
|
|
536
544
|
<div>
|
package/package.json
CHANGED