Fix categories
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
<script lang="ts">
|
||||
import { getCategoriesWithCounts, calculators } from '$lib/data/calculators';
|
||||
import { categories, calculators } from '$lib/data/calculators';
|
||||
import CategoryCard from '$lib/components/CategoryCard.svelte';
|
||||
import SearchBar from '$lib/components/SearchBar.svelte';
|
||||
|
||||
const cats = getCategoriesWithCounts();
|
||||
const cats = Object.entries(categories).map(([key, meta]) => ({
|
||||
key,
|
||||
...meta,
|
||||
}));
|
||||
const totalCalculators = calculators.length;
|
||||
const totalCategories = cats.length;
|
||||
const totalCategories = Object.keys(categories).length;
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
|
||||
Reference in New Issue
Block a user