# \[object Object\] Error appearing in admin dropdown selectors

**URL:** https://meta.discourse.org/t/object-object-error-appearing-in-admin-dropdown-selectors/141983
**Category:** Support
**Created:** [February 19, 2020, 4:45am UTC](https://meta.discourse.org/t/object-object-error-appearing-in-admin-dropdown-selectors/141983 "2020-02-19T04:45:26Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jord8on](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jord8on/32/166809_2.png) [@jord8on](https://meta.discourse.org/u/jord8on)
#### Post date: [February 19, 2020, 4:45am UTC](https://meta.discourse.org/t/object-object-error-appearing-in-admin-dropdown-selectors/141983/1 "2020-02-19T04:45:26Z")

</div>

I just added another support issue which may be related to what I’m illustrating in this video:

> [@Digest/Summary Emails not working](https://meta.discourse.org/t/digest-summary-emails-not-working/141980/2):
>
> A good first step would be to try safe mode and then remove the plugin.

For some reason when I click on the drop-down menus, in several fields of the admin interface, I’m greeted with this “[object Object]” option, which appears to be an error.

Here’s a little screencast to show what I’m experiencing…

[![](https://global.discourse-cdn.com/meta/original/4X/f/7/1/f71042c30c1efa6736a4715970d8aa207f126462.jpeg "Discourse Forum object Object Error") ](https://www.youtube.com/watch?v=1Ke9GpODX7A)

---

<div class="post-metadata">

### Author: ![fb9572a](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fb9572a/32/173941_2.png) [@fb9572a](https://meta.discourse.org/u/fb9572a)
#### Post date: [February 19, 2020, 4:57am UTC](https://meta.discourse.org/t/object-object-error-appearing-in-admin-dropdown-selectors/141983/2 "2020-02-19T04:57:11Z")

</div>

I have the problem, I think it’s introduced in the latest version.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [February 19, 2020, 5:35am UTC](https://meta.discourse.org/t/object-object-error-appearing-in-admin-dropdown-selectors/141983/3 "2020-02-19T05:35:14Z")

</div>

I believe @j.jaffeux is on it?

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [February 19, 2020, 6:42am UTC](https://meta.discourse.org/t/object-object-error-appearing-in-admin-dropdown-selectors/141983/4 "2020-02-19T06:42:01Z")

</div>

Yes.

I see exactly what’s going on. I have to think about it though. It’s very unexpected to me and I don’t have a straightforward fix.

Basically we have site settings we call “enums” which are not flat arrays but array of objects, however enum site setting doesn’t give info about the key used in the object.

---

<div class="post-metadata">

### Author: ![fb9572a](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fb9572a/32/173941_2.png) [@fb9572a](https://meta.discourse.org/u/fb9572a)
#### Post date: [February 19, 2020, 6:48am UTC](https://meta.discourse.org/t/object-object-error-appearing-in-admin-dropdown-selectors/141983/5 "2020-02-19T06:48:14Z")

</div>

problem with this is `tests-passed` pointing to this version. I prefer a reverse. Otherwise whoever upgrade to this latest version will have a problem.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [February 19, 2020, 9:02am UTC](https://meta.discourse.org/t/object-object-error-appearing-in-admin-dropdown-selectors/141983/6 "2020-02-19T09:02:17Z")

</div>

This was tricky. I reverted the previous fix, and created this new fix with tests:

[https://github.com/discourse/discourse/commit/74f2d480186b6cd87a6032ccfadc5721a76eb4b3](https://github.com/discourse/discourse/commit/74f2d480186b6cd87a6032ccfadc5721a76eb4b3)

I think this should solve all issues related to enums.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [February 19, 2020, 9:02am UTC](https://meta.discourse.org/t/object-object-error-appearing-in-admin-dropdown-selectors/141983/7 "2020-02-19T09:02:21Z")

</div>


