We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 298c32b commit 1c2a1aeCopy full SHA for 1c2a1ae
app/utils/documentToSimpleString.ts
@@ -1,5 +1,6 @@
1
// This function processes each individual node of the Rich Text document
2
-export function documentContentToSimpleString(nodes: any) {
+export function documentContentToSimpleString(nodes?: any) {
3
+ if (nodes == undefined) return ''
4
// Initialize an empty string to hold the result
5
let result = "";
6
0 commit comments