@plasmicapp/react-web 0.2.353 → 0.2.355
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-web.esm.js
CHANGED
|
@@ -1573,7 +1573,8 @@ function PlasmicSlot(props) {
|
|
|
1573
1573
|
function renderPlasmicSlot(opts) {
|
|
1574
1574
|
var as = opts.as, defaultContents = opts.defaultContents, value = opts.value, rest = __rest(opts, ["as", "defaultContents", "value"]);
|
|
1575
1575
|
var content = value === undefined ? defaultContents : value;
|
|
1576
|
-
if (
|
|
1576
|
+
if (typeof content !== "number" &&
|
|
1577
|
+
(!content || (Array.isArray(content) && content.length === 0))) {
|
|
1577
1578
|
return null;
|
|
1578
1579
|
}
|
|
1579
1580
|
// If the content is a raw string, then we need to wrap the raw string
|