# Issues overriding getters in a controller (3.0.0)

**URL:** <https://meta.discourse.org/t/issues-overriding-getters-in-a-controller-3-0-0/251793>\
**Category:** Bug\
**Created:** [January 14, 2023, 6:57pm UTC](https://meta.discourse.org/t/issues-overriding-getters-in-a-controller-3-0-0/251793 "2023-01-14T18:57:15Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [January 16, 2023, 10:23pm UTC](https://meta.discourse.org/t/issues-overriding-getters-in-a-controller-3-0-0/251793/7 "2023-01-16T22:23:54Z")

</div>

OK David, it appears (and this is weird):

- works in Production
- fails in Development 3.0.0 onwards (possibly before)

- I’ve tested on a vanilla no docker Dev environment but also on a very clean (but possibly config incomplete bespoke Docker dev environment).

Here’s the errors:

```plaintext
Error occurred:

- While rendering:
  -top-level
    application
      discourse-root
        sidebar-wrapper
          admin
            admin-wrapper
              nav-item
                link-to
                  -link-to

```

```plaintext
Uncaught (in promise) TypeError: While generating link to route "adminPlugins": this.model is undefined
    get allAdminRoutes admin-plugins.js:20

```

note that I can put a debugger statement before the `return this.model` and it never fires the debugger.

@RGJ has kindly also looked at this and can repro this result.

This is a bit of a problem as clearly we need to develop stuff before it goes to production … but I don’t have to tell you that! 😅 Also a bit annoying it’s a problem on Stable …

Moved to #Contribute > Bug for now …

---

_[View the full topic](https://meta.discourse.org/t/issues-overriding-getters-in-a-controller-3-0-0/251793)._
