diff --git a/src/components/category/DefaultMenu.tsx b/src/components/category/DefaultMenu.tsx
index 8521a92..eb355d2 100644
--- a/src/components/category/DefaultMenu.tsx
+++ b/src/components/category/DefaultMenu.tsx
@@ -30,7 +30,7 @@ const DefaultMenu = ({
<>
{menus.map((menu: ISubFolderProps | ITagProps) => (
- <>
+
{'tag_id' in menu && (
)}
- >
+
))}
diff --git a/src/pages/CategoryPage.tsx b/src/pages/CategoryPage.tsx
index e48c5fd..ac9eb6b 100644
--- a/src/pages/CategoryPage.tsx
+++ b/src/pages/CategoryPage.tsx
@@ -121,7 +121,7 @@ const CategoryPage = () => {
video={video}
checkedVideos={checkedVideos}
setCheckedVideos={setCheckedVideos}
- key={video.category_id}
+ key={video.video_id}
/>
);
})}
diff --git a/src/utils/handleVideo.ts b/src/utils/handleVideo.ts
index ab90820..f6301a3 100644
--- a/src/utils/handleVideo.ts
+++ b/src/utils/handleVideo.ts
@@ -13,7 +13,7 @@ const handleVideo = async (
setName: React.Dispatch>,
setVideos: React.Dispatch>,
) => {
- await getVideoById(topCategoryId).then((res) => {
+ await getVideoById(topCategoryId).then(async (res) => {
const topCategory = categories.find(
(category) => category.categoryId === Number(topCategoryId),
);
@@ -22,7 +22,7 @@ const handleVideo = async (
(subFolder) => subFolder.categoryId === Number(subCategoryId),
);
setName(subName!.name);
- getCategoryTags(subCategoryId!).then((res) => {
+ await getCategoryTags(subCategoryId!).then((res) => {
if (res.isSuccess) setMenus(res.result.tags);
else setMenus([]);
});