@visns-studio/visns-components 5.3.1 → 5.3.3
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/package.json
CHANGED
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
79
79
|
},
|
|
80
80
|
"name": "@visns-studio/visns-components",
|
|
81
|
-
"version": "5.3.
|
|
81
|
+
"version": "5.3.3",
|
|
82
82
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
83
83
|
"main": "src/index.js",
|
|
84
84
|
"files": [
|
|
@@ -236,6 +236,10 @@ function Field({
|
|
|
236
236
|
filter.orderBy = a.orderBy;
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
+
if (a.order) {
|
|
240
|
+
filter.order = a.order;
|
|
241
|
+
}
|
|
242
|
+
|
|
239
243
|
CustomFetch(
|
|
240
244
|
a.url,
|
|
241
245
|
'POST',
|
|
@@ -267,6 +271,10 @@ function Field({
|
|
|
267
271
|
filter.orderBy = s.child.orderBy;
|
|
268
272
|
}
|
|
269
273
|
|
|
274
|
+
if (s?.child?.order) {
|
|
275
|
+
filter.order = s.child.order;
|
|
276
|
+
}
|
|
277
|
+
|
|
270
278
|
if (s?.child?.where) {
|
|
271
279
|
forEach(s.child.where, (w) => {
|
|
272
280
|
filter.where.push(w);
|
|
@@ -713,7 +713,12 @@ const GenericDynamic = ({
|
|
|
713
713
|
setActiveFormKey(0);
|
|
714
714
|
}
|
|
715
715
|
} else {
|
|
716
|
-
|
|
716
|
+
const activeFormData =
|
|
717
|
+
data[type].length > 0 && Array.isArray(data[type])
|
|
718
|
+
? data[type][0]
|
|
719
|
+
: data[type];
|
|
720
|
+
|
|
721
|
+
setActiveForm(activeFormData);
|
|
717
722
|
setActiveFormKey(0);
|
|
718
723
|
}
|
|
719
724
|
}
|