DEV: Check for presence of currentRoute.attributes (#870)

This commit is contained in:
jbrw 2024-10-25 13:30:29 -04:00 committed by GitHub
parent 8ded4b2e58
commit c479b177a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ export default class AiGistDisclosure extends Component {
@service router; @service router;
get shouldShow() { get shouldShow() {
return this.router.currentRoute.attributes.list?.topics?.some( return this.router.currentRoute.attributes?.list?.topics?.some(
(topic) => topic.ai_topic_gist (topic) => topic.ai_topic_gist
); );
} }