@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.
@@ -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
@@ -44,7 +44,7 @@
44
44
  "react-dom": "^17.0.1"
45
45
  },
46
46
  "name": "@visns-studio/visns-components",
47
- "version": "2.7.13",
47
+ "version": "2.8.0",
48
48
  "description": "Various packages to assist in the development of our Custom Applications.",
49
49
  "main": "index.js",
50
50
  "scripts": {