Skip to content

Commit

Permalink
last active
Browse files Browse the repository at this point in the history
  • Loading branch information
jderecho committed Jul 12, 2024
1 parent 501a57d commit 9f4a761
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def already_translated_content_available?

def deactivate_smart_actions
return unless Current.account.feature_enabled?('smart_actions')
return unless (copilot_draft = @conversation.smart_actions.ask_copilot.first&.content).present?
return unless (copilot_draft = @conversation.smart_actions.ask_copilot.active.last&.content).present?

if params[:content].to_s.include? copilot_draft
@conversation.smart_actions.update_all(active: false)
Expand Down

0 comments on commit 9f4a761

Please sign in to comment.