Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix: readonly notes should not break with empty objects or undefined

Brad Barbin70bb20f79578
diff --git a/packages/react/src/index.tsx b/packages/react/src/index.tsx
index f7a265722a..c0f7e79a50 100644
--- a/packages/react/src/index.tsx
+++ b/packages/react/src/index.tsx
@@ -248,6 +248,9 @@ const generateHTML = (content: JSONContent) => {
if (typeof window === "undefined") {
return "";
}
+ if (!content || !("type" in content)) {
+ return "";
+ }
return DefaultGenerateHTML(content, defaultExtensions);
};