Update Industries.tsx

This commit is contained in:
Desktop
2025-11-13 01:12:39 +05:00
parent fb8bc9fa86
commit e28ac2c46e

View File

@@ -58,7 +58,12 @@ export default function Industries() {
}; };
}); });
setIndustries(industriesWithData); // Filter to only show industries that have keywords associated
const industriesWithKeywords = industriesWithData.filter(
(industry) => industry.keywordsCount > 0
);
setIndustries(industriesWithKeywords);
} catch (error: any) { } catch (error: any) {
toast.error(`Failed to load industries: ${error.message}`); toast.error(`Failed to load industries: ${error.message}`);
} finally { } finally {