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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user