rht
This commit is contained in:
parent
83c66f29ff
commit
5bc3303e94
|
@ -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;
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue