Update Industries.tsx
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user