mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-16 08:24:45 +00:00
DEV: Check for presence of currentRoute.attributes (#870)
This commit is contained in:
parent
8ded4b2e58
commit
c479b177a7
@ -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
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user