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;
|
@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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue