mirror of https://github.com/zulip/zulip.git
integrations: Fix JavaScript exception on category pages.
This logic threw an exception ever since we added new buttons at the bottom of the page that were inside the container this looped over.
This commit is contained in:
parent
7c5340dc21
commit
747cbb5dde
|
@ -102,8 +102,8 @@ function update_categories() {
|
|||
const update_integrations = _.debounce(() => {
|
||||
const max_scrollY = window.scrollY;
|
||||
|
||||
for (const integration of $(".integration-lozenges").children()) {
|
||||
const $integration = $(integration).find(".integration-lozenge");
|
||||
for (const integration of $(".integration-lozenges").find(".integration-lozenge")) {
|
||||
const $integration = $(integration);
|
||||
const $integration_category = $integration.find(".integration-category");
|
||||
|
||||
if (state.category !== "all") {
|
||||
|
|
Loading…
Reference in New Issue