Skip to content

Commit 4d588e9

Browse files
committed
Fix SEO and categories search
1 parent 8b962cb commit 4d588e9

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

app/layout.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { Header } from "@/components/Header";
1313
import { ProgressBar } from "@/components/ProgressBar";
1414

1515
export const metadata: Metadata = {
16-
robots: "noindex, nofollow",
1716
title: "My Lib",
1817
};
1918

components/categories/CategoriesList.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ export const CategoriesList = () => {
2626
const { currentCategories, setCurrentCategories } = useCategories();
2727

2828
useEffect(() => {
29-
// Initial set of categories
30-
if (categories.length) {
31-
setCurrentCategories(categories);
32-
}
29+
setCurrentCategories(categories);
3330
}, [categories]);
3431

3532
const onFinishCreatingCategory = useCallback(() => {

0 commit comments

Comments
 (0)