@plasmicapp/react-web 0.2.353 → 0.2.354
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.js
CHANGED
|
@@ -1592,7 +1592,8 @@ function PlasmicSlot(props) {
|
|
|
1592
1592
|
function renderPlasmicSlot(opts) {
|
|
1593
1593
|
var as = opts.as, defaultContents = opts.defaultContents, value = opts.value, rest = __rest(opts, ["as", "defaultContents", "value"]);
|
|
1594
1594
|
var content = value === undefined ? defaultContents : value;
|
|
1595
|
-
if (
|
|
1595
|
+
if (typeof content !== "number" &&
|
|
1596
|
+
(!content || (Array.isArray(content) && content.length === 0))) {
|
|
1596
1597
|
return null;
|
|
1597
1598
|
}
|
|
1598
1599
|
// If the content is a raw string, then we need to wrap the raw string
|