@visns-studio/visns-components 1.7.5 → 1.7.6

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.
@@ -388,7 +388,11 @@ const DataGrid = forwardRef(
388
388
  className="btn"
389
389
  onClick={() => {
390
390
  if (form.create) {
391
- modalOpen("create", 0);
391
+ if (form.create.url) {
392
+ navigate(form.create.url);
393
+ } else {
394
+ modalOpen("create", 0);
395
+ }
392
396
  } else {
393
397
  if (form.url) {
394
398
  window.open(
@@ -449,7 +449,17 @@ function Form(props) {
449
449
  });
450
450
  }
451
451
 
452
- if (fileUpload === true && formData[fileKey] !== null) {
452
+ console.info(
453
+ fileUpload,
454
+ formData[fileKey],
455
+ formData[fileKey] instanceof File
456
+ );
457
+
458
+ if (
459
+ fileUpload === true &&
460
+ formData[fileKey] !== null &&
461
+ formData[fileKey] instanceof File
462
+ ) {
453
463
  Vapor.store(formData[fileKey], {
454
464
  progress: (progress) => {
455
465
  setUploadProgress(progress * 100);
package/package.json CHANGED
@@ -34,7 +34,7 @@
34
34
  "react-dom": "^17.0.1"
35
35
  },
36
36
  "name": "@visns-studio/visns-components",
37
- "version": "1.7.5",
37
+ "version": "1.7.6",
38
38
  "description": "Various packages to assist in the development of our Custom Applications.",
39
39
  "main": "index.js",
40
40
  "scripts": {