diff --git a/assets/javascripts/discourse/components/ai-gist-disclosure.gjs b/assets/javascripts/discourse/components/ai-gist-disclosure.gjs index db371fd3..7534d6c2 100644 --- a/assets/javascripts/discourse/components/ai-gist-disclosure.gjs +++ b/assets/javascripts/discourse/components/ai-gist-disclosure.gjs @@ -7,7 +7,7 @@ export default class AiGistDisclosure extends Component { @service router; get shouldShow() { - return this.router.currentRoute.attributes.list?.topics?.some( + return this.router.currentRoute.attributes?.list?.topics?.some( (topic) => topic.ai_topic_gist ); }