Skip to content

Commit da36cd8

Browse files
authored
Merge pull request #51 from BohdanUlich/hotfix/v1.4.1
Hotfix v1.4.1
2 parents 353d583 + 204220f commit da36cd8

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-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(() => {

services/fetchService.ts

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const fetchService = async (url: string, options: RequestOptions) => {
2525
? { body: data }
2626
: { body: JSON.stringify(data) }
2727
: undefined),
28+
cache: "no-store",
2829
};
2930

3031
try {

0 commit comments

Comments
 (0)