Spaces:
Running
Running
gpt-engineer-app[bot]
commited on
Commit
·
52d73b6
1
Parent(s):
e4f8014
Fix: `conf.tags.map` TypeError
Browse filesThe `conf.tags.map` function was throwing a TypeError because `conf.tags` was not an array in some cases. This commit addresses the issue.
- src/pages/Calendar.tsx +1 -1
src/pages/Calendar.tsx
CHANGED
@@ -230,7 +230,7 @@ const CalendarPage = () => {
|
|
230 |
)}
|
231 |
</div>
|
232 |
<div className="mt-2 flex flex-wrap gap-2">
|
233 |
-
{conf.tags.map((tag) => (
|
234 |
<span key={tag} className="inline-flex items-center px-2 py-1 rounded-full
|
235 |
text-xs bg-neutral-100">
|
236 |
<Tag className="h-3 w-3 mr-1" />
|
|
|
230 |
)}
|
231 |
</div>
|
232 |
<div className="mt-2 flex flex-wrap gap-2">
|
233 |
+
{Array.isArray(conf.tags) && conf.tags.map((tag) => (
|
234 |
<span key={tag} className="inline-flex items-center px-2 py-1 rounded-full
|
235 |
text-xs bg-neutral-100">
|
236 |
<Tag className="h-3 w-3 mr-1" />
|