@visns-studio/visns-components 1.7.4 → 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
|
-
|
|
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(
|
|
@@ -1193,6 +1197,10 @@ const DataGrid = forwardRef(
|
|
|
1193
1197
|
}, "");
|
|
1194
1198
|
|
|
1195
1199
|
if (value) {
|
|
1200
|
+
if (Array.isArray(value)) {
|
|
1201
|
+
value = value[0];
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1196
1204
|
if (Array.isArray(column.nameFrom)) {
|
|
1197
1205
|
value = column.nameFrom
|
|
1198
1206
|
.map((nf) => value[nf])
|