fix: value undefined in CollectionCategory

This commit is contained in:
katherinehhh 2024-01-08 15:25:18 +08:00
parent b43ee20326
commit af3ef28656

View File

@ -9,7 +9,7 @@ export const CollectionCategory = observer(
const compile = useCompile(); const compile = useCompile();
return ( return (
<> <>
{value.map((item) => { {value?.map((item) => {
return ( return (
<Tag key={item.name} color={item.color}> <Tag key={item.name} color={item.color}>
{compile(item?.name)} {compile(item?.name)}