From a565343102ccc682091ad3e8ca872178ebf784c7 Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Thu, 15 May 2025 10:53:15 -0400 Subject: [PATCH] Fix account group broadcast reference --- app/models/account/sync_complete_event.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/account/sync_complete_event.rb b/app/models/account/sync_complete_event.rb index 2a64ab80..129e64a3 100644 --- a/app/models/account/sync_complete_event.rb +++ b/app/models/account/sync_complete_event.rb @@ -38,6 +38,8 @@ class Account::SyncCompleteEvent # The sidebar will show the account in both its classification tab and the "all" tab, # so we need to broadcast to both. def account_group_ids + return [] unless account_group.present? + id = account_group.id [ id, "#{account_group.classification}_#{id}" ] end