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.
2 parents 298c32b + 1c2a1ae commit 125d82eCopy full SHA for 125d82e
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