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:
Tim Abbott 2021-05-08 07:54:46 -07:00
parent 7c5340dc21
commit 747cbb5dde
1 changed files with 2 additions and 2 deletions

View File

@ -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") {