# Exception in webhook admin UI

**URL:** <https://meta.discourse.org/t/exception-in-webhook-admin-ui/102501>\
**Category:** Bug\
**Created:** [November 21, 2018, 10:49pm UTC](https://meta.discourse.org/t/exception-in-webhook-admin-ui/102501 "2018-11-21T22:49:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [November 21, 2018, 10:49pm UTC](https://meta.discourse.org/t/exception-in-webhook-admin-ui/102501/1 "2018-11-21T22:49:00Z")

</div>

Since the removal of various \_.underscore methods, I’ve been noticing a few `null` exceptions, some may be something I need to address in my plugins, but there’s at least one in core:

1. Navigate to `/admin/api/web_hooks/new`

2. An exception is thrown.

```plaintext
TypeError: Cannot read property 'forEach' of undefined
at Function.findByIds (discourse/models/category:232)

```

See [DEV: removes \_.each from codebase (#6629) · discourse/discourse@9672c92 · GitHub](https://github.com/discourse/discourse/commit/9672c92045f31cc47976518d22137015722805d6#diff-d41231bde8cb5d18070eb38dcbee151eR262) and comments.

@j.jaffeux

ps. @pfaffman

---

_[View the full topic](https://meta.discourse.org/t/exception-in-webhook-admin-ui/102501)._
