mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	Bug: Fix inbox.agent_bot nil case (#841)
This commit is contained in:
		@@ -8,7 +8,9 @@
 | 
				
			|||||||
      window.chatwootWebChannel = {
 | 
					      window.chatwootWebChannel = {
 | 
				
			||||||
        avatarUrl: '<%= @web_widget.inbox.avatar_url %>',
 | 
					        avatarUrl: '<%= @web_widget.inbox.avatar_url %>',
 | 
				
			||||||
        hasAConnectedAgentBot: '<%= @web_widget.inbox.agent_bot&.name %>',
 | 
					        hasAConnectedAgentBot: '<%= @web_widget.inbox.agent_bot&.name %>',
 | 
				
			||||||
        hideInputForBotConversations: <%= ActiveModel::Type::Boolean.new.cast(@web_widget.inbox.agent_bot&.hide_input_for_bot_conversations) %>,
 | 
					        <% if @web_widget.inbox.agent_bot %>
 | 
				
			||||||
 | 
					          hideInputForBotConversations: <%= @web_widget.inbox.agent_bot.hide_input_for_bot_conversations %>,
 | 
				
			||||||
 | 
					        <% end %>
 | 
				
			||||||
        locale: '<%= @web_widget.account.locale %>',
 | 
					        locale: '<%= @web_widget.account.locale %>',
 | 
				
			||||||
        websiteName: '<%= @web_widget.inbox.name %>',
 | 
					        websiteName: '<%= @web_widget.inbox.name %>',
 | 
				
			||||||
        websiteToken: '<%= @web_widget.website_token %>',
 | 
					        websiteToken: '<%= @web_widget.website_token %>',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user