Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: render-html stringify #495

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/drip-table-generator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "drip-table-generator",
"version": "3.2.1-alpha.9",
"version": "3.2.1-alpha.10",
"description": "A visualization tool for generating schema of drip-table.",
"main": "dist/index.min.js",
"module": "lib/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/drip-table/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "drip-table",
"version": "3.2.1-alpha.9",
"version": "3.2.1-alpha.10",
"description": "A tiny and powerful enterprise-class solution for building tables.",
"main": "dist/index.min.js",
"module": "lib/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default class DTCRenderHTMLRemote<RecordType extends DripTableRecordTypeB
if (typeof html === 'number') {
return <div>{ html }</div>;
}
return <RichText html={Object.prototype.toString.call(html || '')} style={{ wordBreak: 'break-all' }} />;
return <RichText html={`${html || ''}`} style={{ wordBreak: 'break-all' }} />;
} catch (error) {
console.error(error);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class DTCRenderHTML<RecordType extends DripTableRecordTypeBase> e
if (typeof html === 'number') {
return <div>{ html }</div>;
}
return <ErrorBoundary><RichText html={Object.prototype.toString.call(html || '')} style={{ wordBreak: 'break-all' }} /></ErrorBoundary>;
return <ErrorBoundary><RichText html={`${html || ''}`} style={{ wordBreak: 'break-all' }} /></ErrorBoundary>;
} catch (error) {
console.error(error);
}
Expand Down
Loading