From 5a14e0627142baa8fbebc87685aa9c243c2536d5 Mon Sep 17 00:00:00 2001
From: Ali <75311052+AAVision@users.noreply.github.com>
Date: Thu, 28 Mar 2024 18:00:33 +0200
Subject: [PATCH 1/4] This commit will add conditions
---
src/app/components/home/home.component.html | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/app/components/home/home.component.html b/src/app/components/home/home.component.html
index 1951e20..9fad7c7 100644
--- a/src/app/components/home/home.component.html
+++ b/src/app/components/home/home.component.html
@@ -71,8 +71,10 @@
{{githubData?.name}}
{{githubData?.description}}
- @for(topic of githubData?.topics; track topic){
-
{{topic}}
+ @if(githubData?.topics){
+ @for(topic of githubData?.topics; track topic){
+
{{topic}}
+ }
}