This commit is contained in:
ditiqi 2025-03-06 22:34:18 +08:00
parent e60c5000f4
commit 48706e79eb
1 changed files with 23 additions and 17 deletions

View File

@ -6,7 +6,13 @@ const TermInfo = ({ terms = [] }: { terms?: TermDto[] }) => {
<div> <div>
{terms && terms?.length > 0 ? ( {terms && terms?.length > 0 ? (
<div className="flex gap-2 mb-4"> <div className="flex gap-2 mb-4">
{terms?.map((term: any) => { {terms
?.sort((a, b) =>
String(a?.taxonomy?.id || "").localeCompare(
String(b?.taxonomy?.id || "")
)
)
?.map((term: any) => {
return ( return (
<Tag <Tag
key={term.id} key={term.id}