@visns-studio/visns-components 3.1.12 → 3.1.13

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.
@@ -669,32 +669,32 @@ const DataGrid = forwardRef(
669
669
  {(form.create &&
670
670
  form.create.title &&
671
671
  form.create.title !== '') ||
672
- (form.url && (
673
- <button
674
- className="btn"
675
- onClick={(e) => {
676
- e.preventDefault();
677
-
678
- if (form.create) {
679
- if (form.create.url) {
680
- navigate(form.create.url);
681
- } else {
682
- modalOpen('create', 0);
683
- }
672
+ form.url ? (
673
+ <button
674
+ className="btn"
675
+ onClick={(e) => {
676
+ e.preventDefault();
677
+
678
+ if (form.create) {
679
+ if (form.create.url) {
680
+ navigate(form.create.url);
684
681
  } else {
685
- if (form.url) {
686
- window.open(
687
- form.url,
688
- '',
689
- 'width=1440,height=1024,menubar=1,resizable=1,status=1,titlebar=1,toolbar=1'
690
- );
691
- }
682
+ modalOpen('create', 0);
683
+ }
684
+ } else {
685
+ if (form.url) {
686
+ window.open(
687
+ form.url,
688
+ '',
689
+ 'width=1440,height=1024,menubar=1,resizable=1,status=1,titlebar=1,toolbar=1'
690
+ );
692
691
  }
693
- }}
694
- >
695
- <div className="icon-plus"></div> Create
696
- </button>
697
- ))}
692
+ }
693
+ }}
694
+ >
695
+ <div className="icon-plus"></div> Create
696
+ </button>
697
+ ) : null}
698
698
  </div>
699
699
  );
700
700
  };
package/package.json CHANGED
@@ -49,7 +49,7 @@
49
49
  "react-dom": "^17.0.1"
50
50
  },
51
51
  "name": "@visns-studio/visns-components",
52
- "version": "3.1.12",
52
+ "version": "3.1.13",
53
53
  "description": "Various packages to assist in the development of our Custom Applications.",
54
54
  "main": "index.js",
55
55
  "scripts": {