This commit is contained in:
Rao 2025-03-03 09:15:04 +08:00
parent 83c66f29ff
commit 5bc3303e94
2 changed files with 2 additions and 3 deletions

View File

@ -58,7 +58,7 @@ const CategorySection = () => {
{isLoading ? (
<Skeleton paragraph={{ rows: 4 }}></Skeleton>
) : (
courseCategoriesData?.map((category, index) => {
courseCategoriesData?.filter(c=>!c.deletedAt)?.map((category, index) => {
const categoryColor = stringToColor(category.name);
const isHovered = hoveredIndex === index;

View File

@ -1,7 +1,6 @@
import { api } from "@nice/client/";
import { Checkbox, Skeleton } from "antd";
import { TermDto } from "@nice/common";
import React from "react";
export default function TermParentSelector({
value,
onChange,
@ -40,7 +39,7 @@ export default function TermParentSelector({
}}></Skeleton>
) : (
<Checkbox.Group value={value} onChange={handleCheckboxChange}>
{data?.map((category) => (
{data?.filter(category=>!category.deletedAt)?.map((category) => (
<div className="w-full h-9 p-2 my-1" key={category.id}>
<Checkbox
className="text-base text-slate-700"