Procházet zdrojové kódy

Make sure that all cards are visible.

Thanks to xet7 !

Related #5915
Lauri Ojansivu před 2 týdny
rodič
revize
6b848b318d
1 změnil soubory, kde provedl 6 přidání a 8 odebrání
  1. 6 8
      client/components/swimlanes/swimlanes.js

+ 6 - 8
client/components/swimlanes/swimlanes.js

@@ -223,10 +223,9 @@ BlazeComponent.extendComponent({
       }
     }
     if (Filter.hideEmpty.isSelected()) {
-      const swimlaneId = this.parentComponent()
-        .parentComponent()
-        .data()._id;
-      const cards = list.cards(swimlaneId);
+      // Check for cards in all swimlanes, not just the current one
+      // This ensures lists with cards in other swimlanes are still visible
+      const cards = list.cards();
       if (cards.length === 0) {
         return false;
       }
@@ -375,10 +374,9 @@ BlazeComponent.extendComponent({
       }
     }
     if (Filter.hideEmpty.isSelected()) {
-      const swimlaneId = this.parentComponent()
-        .parentComponent()
-        .data()._id;
-      const cards = list.cards(swimlaneId);
+      // Check for cards in all swimlanes, not just the current one
+      // This ensures lists with cards in other swimlanes are still visible
+      const cards = list.cards();
       if (cards.length === 0) {
         return false;
       }