From 13db319bba7aee9e2a28ea9cda8b25fe28bd35d7 Mon Sep 17 00:00:00 2001 From: lucasferreiralimax Date: Thu, 4 Jul 2024 11:47:08 -0300 Subject: [PATCH] improvement check current updateTechs list for hiddenLogos --- .../src/lib/angular-techs-logos.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/angular-techs-logos/src/lib/angular-techs-logos.component.ts b/projects/angular-techs-logos/src/lib/angular-techs-logos.component.ts index ca3d5fd..59e04b8 100644 --- a/projects/angular-techs-logos/src/lib/angular-techs-logos.component.ts +++ b/projects/angular-techs-logos/src/lib/angular-techs-logos.component.ts @@ -59,9 +59,9 @@ export class AngularTechsLogosComponent implements OnInit, OnChanges { const currentList = this.listSignal(); const currentHiddenLogos = this.hiddenLogosSignal(); - if (currentList) { + if (currentList && this.list) { this.techsList.set(this.getTechs(currentList)); - } else if (currentHiddenLogos && currentHiddenLogos.length > 0) { + } else if (currentHiddenLogos && this.hiddenLogos) { this.techsList.set(this.hiddenTechs(currentHiddenLogos)); } else { this.techsList.set(this.techs);