@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 CHANGED
@@ -7155,7 +7155,7 @@ function renderNode(node, data, onAction, theme, key, slot) {
7155
7155
  const vw = node.visibleWhen;
7156
7156
  if (typeof vw === "string") {
7157
7157
  const v = data[vw];
7158
- if (v == null || v === "" || v === false) return null;
7158
+ if (v == null || v === "" || v === false || Array.isArray(v) && v.length === 0) return null;
7159
7159
  } else {
7160
7160
  const v = data[vw.field];
7161
7161
  if ("eq" in vw) {