mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-11-03 20:19:31 +00:00 
			
		
		
		
	fix the richTextEditor output in case on no data save (#19476)
* fix the richTextEditor output in case on no data save * revert the undefined to empty string as we previously had (cherry picked from commit 06759c589da7b859e10ab31ab0d6cbd838b0069a)
This commit is contained in:
		
							parent
							
								
									4c8a268688
								
							
						
					
					
						commit
						ff9f9063d7
					
				@ -47,7 +47,7 @@ const RichTextEditor = forwardRef<EditorContentRef, RichTextEditorProp>(
 | 
			
		||||
        const htmlContent = editorRef.current?.editor?.getHTML() ?? '';
 | 
			
		||||
        const backendFormat = formatContent(htmlContent, 'server');
 | 
			
		||||
 | 
			
		||||
        return backendFormat;
 | 
			
		||||
        return backendFormat === '<p></p>' ? '' : backendFormat;
 | 
			
		||||
      },
 | 
			
		||||
    }));
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user