nielsr HF staff commited on
Commit
6c614e3
·
1 Parent(s): 815985f
Files changed (1) hide show
  1. src/pages/Index.tsx +1 -1
src/pages/Index.tsx CHANGED
@@ -26,7 +26,7 @@ const Index = () => {
26
  if (!showPastConferences && !isUpcoming) return false;
27
 
28
  // Filter by tag and search query
29
- const matchesTag = selectedTag === "All" || conf.tags.includes(selectedTag);
30
  const matchesSearch = searchQuery === "" ||
31
  conf.title.toLowerCase().includes(searchQuery.toLowerCase()) ||
32
  (conf.full_name && conf.full_name.toLowerCase().includes(searchQuery.toLowerCase()));
 
26
  if (!showPastConferences && !isUpcoming) return false;
27
 
28
  // Filter by tag and search query
29
+ const matchesTag = selectedTag === "All" || (Array.isArray(conf.tags) && conf.tags.includes(selectedTag));
30
  const matchesSearch = searchQuery === "" ||
31
  conf.title.toLowerCase().includes(searchQuery.toLowerCase()) ||
32
  (conf.full_name && conf.full_name.toLowerCase().includes(searchQuery.toLowerCase()));