DEV: ensure discovery getters don't fail with a missing #routeAttrs (#24549)
This commit is contained in:
parent
d5f459db14
commit
bf9c0c4889
|
@ -21,19 +21,19 @@ export default class DiscoveryService extends Service {
|
|||
|
||||
get category() {
|
||||
if (this.onDiscoveryRoute) {
|
||||
return this.#routeAttrs.category;
|
||||
return this.#routeAttrs?.category;
|
||||
}
|
||||
}
|
||||
|
||||
get tag() {
|
||||
if (this.onDiscoveryRoute) {
|
||||
return this.#routeAttrs.tag;
|
||||
return this.#routeAttrs?.tag;
|
||||
}
|
||||
}
|
||||
|
||||
get currentTopicList() {
|
||||
if (this.onDiscoveryRoute) {
|
||||
return this.#routeAttrs.list;
|
||||
return this.#routeAttrs?.list;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue