mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	fix: Prevent formData.append from Adding 'null' String for null replyTo (#8623)
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
This commit is contained in:
		@@ -52,7 +52,9 @@ const sendAttachment = ({ attachment, replyTo = null }) => {
 | 
			
		||||
 | 
			
		||||
  formData.append('message[referer_url]', referrerURL);
 | 
			
		||||
  formData.append('message[timestamp]', timestamp);
 | 
			
		||||
  formData.append('message[reply_to]', replyTo);
 | 
			
		||||
  if (replyTo !== null) {
 | 
			
		||||
    formData.append('message[reply_to]', replyTo);
 | 
			
		||||
  }
 | 
			
		||||
  return {
 | 
			
		||||
    url: `/api/v1/widget/messages${window.location.search}`,
 | 
			
		||||
    params: formData,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user