@gisce/react-ooui 2.66.0 → 2.66.1
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/dist/react-ooui.es.js
CHANGED
|
@@ -14271,7 +14271,7 @@ const fy = xt(uy), my = (e) => {
|
|
|
14271
14271
|
}, Cy = (e) => {
|
|
14272
14272
|
const { ooui: t, value: n } = e, { selectionValues: r, errorField: o, lastStep: a } = t, s = ee(He);
|
|
14273
14273
|
let l = [], c;
|
|
14274
|
-
t.fieldType === "json" ? (l = n.map((d) => [d.title, d.title]), c = n.findIndex((d) => d.active)) : (l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n));
|
|
14274
|
+
t.fieldType === "json" && n ? (l = n.map((d) => [d.title, d.title]), c = n.findIndex((d) => d.active)) : (l = Array.from(r.entries()), c = l.map((d) => d[0]).indexOf(n));
|
|
14275
14275
|
let u = "process", f = "";
|
|
14276
14276
|
return o && (f = s.getFieldValue(o), f && (u = "error")), a && c + 1 == l.length && (u = "finish"), /* @__PURE__ */ i(qo, { current: c, status: u, children: l.map((d, m) => /* @__PURE__ */ i(
|
|
14277
14277
|
qo.Step,
|