@blocknote/core 0.31.1 → 0.31.2

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/blocknote.js CHANGED
@@ -1420,9 +1420,9 @@ function Ut(e, n, t, o) {
1420
1420
  if (!c)
1421
1421
  throw new Error(`style ${i} not found in styleSchema`);
1422
1422
  if (c.propSchema === "boolean")
1423
- r.push(n.mark(i));
1423
+ a && r.push(n.mark(i));
1424
1424
  else if (c.propSchema === "string")
1425
- r.push(n.mark(i, { stringValue: a }));
1425
+ a && r.push(n.mark(i, { stringValue: a }));
1426
1426
  else
1427
1427
  throw new j(c.propSchema);
1428
1428
  }