From a3e9b0ce049e6eb549da96630c2cd27e3e1a8c19 Mon Sep 17 00:00:00 2001 From: Sj-Si Date: Fri, 31 May 2024 09:37:30 -0400 Subject: [PATCH] Remove toggling resize grid on refresh since it is not needed and was causing a bug. --- javascript/extraNetworks.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/javascript/extraNetworks.js b/javascript/extraNetworks.js index e4666c1d0..de127cb2d 100644 --- a/javascript/extraNetworks.js +++ b/javascript/extraNetworks.js @@ -389,18 +389,6 @@ class ExtraNetworksTab { this.card_list.enable(this.card_view_en); await Promise.all([this.tree_list.load(true), this.card_list.load(true)]); - const div_dirs = this.container_elem.querySelector(".extra-network-content--dirs-view"); - const div_tree = this.container_elem.querySelector(".extra-network-content--tree-view"); - const div_card = this.container_elem.querySelector(".extra-network-content--card-view"); - const div_dets = this.container_elem.querySelector(".extra-network-content--dets-view"); - this.resize_grid.toggle({elem: div_dirs, override: this.dirs_view_en}); - this.resize_grid.toggle({elem: div_tree, override: this.tree_view_en}); - this.resize_grid.toggle({elem: div_card, override: this.card_view_en}); - this.resize_grid.toggle({ - elem: div_dets, - override: this.dets_view_en && div_dets.innerHTML !== "", - }); - // apply the previous sort/filter options await this.applyListButtonStates(); this.setSortMode(this.sort_mode_str);