fix: Use documentable instead of document (#10743)

Fixes
https://linear.app/chatwoot/issue/CW-3950/nomethoderror-undefined-method-document-for-an-instance-of
This commit is contained in:
Pranav
2025-01-21 19:43:20 -08:00
committed by GitHub
parent 451c28a7a1
commit 3a950dbdbb

View File

@@ -71,7 +71,7 @@ module Captain::ChatHelper
"
if response.documentable.present? && response.documentable.try(:external_link)
formatted_response += "
Source: #{response.document.external_link}
Source: #{response.documentable.external_link}
"
end