@gravity-platform/unoverse-react 0.0.6 → 0.0.7
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7136,7 +7136,7 @@ function renderNode(node, data, onAction, theme, key, slot) {
|
|
|
7136
7136
|
const vw = node.visibleWhen;
|
|
7137
7137
|
if (typeof vw === "string") {
|
|
7138
7138
|
const v = data[vw];
|
|
7139
|
-
if (v == null || v === "" || v === false) return null;
|
|
7139
|
+
if (v == null || v === "" || v === false || Array.isArray(v) && v.length === 0) return null;
|
|
7140
7140
|
} else {
|
|
7141
7141
|
const v = data[vw.field];
|
|
7142
7142
|
if ("eq" in vw) {
|