Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit dad1584

Browse files
committed
get model from controller not route
1 parent 7a295c0 commit dad1584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/javascripts/initializers/ai-conversations-sidebar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export default {
214214
return aiConversationsSidebarManager.forceCustomSidebar();
215215
}
216216

217-
const topic = api.container.lookup("route:topic").modelFor("topic");
217+
const topic = api.container.lookup("controller:topic").model;
218218
if (
219219
topic &&
220220
topic.archetype === "private_message" &&

0 commit comments

Comments
 (0)