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

Commit c479b17

Browse files
authored
DEV: Check for presence of currentRoute.attributes (#870)
1 parent 8ded4b2 commit c479b17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/javascripts/discourse/components/ai-gist-disclosure.gjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default class AiGistDisclosure extends Component {
77
@service router;
88

99
get shouldShow() {
10-
return this.router.currentRoute.attributes.list?.topics?.some(
10+
return this.router.currentRoute.attributes?.list?.topics?.some(
1111
(topic) => topic.ai_topic_gist
1212
);
1313
}

0 commit comments

Comments
 (0)