mirror of https://gitee.com/answerdev/answer.git
fix(TagInfo): Tag names automatically fall back to `slug_name`
This commit is contained in:
parent
6a89c9be5f
commit
e26bfd68fb
|
@ -30,7 +30,9 @@ const Index: FC<IProps> = ({
|
||||||
data.recommend && 'badge-tag-required',
|
data.recommend && 'badge-tag-required',
|
||||||
className,
|
className,
|
||||||
)}>
|
)}>
|
||||||
<span className={textClassName}>{data.display_name}</span>
|
<span className={textClassName}>
|
||||||
|
{data.display_name || data.slug_name}
|
||||||
|
</span>
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -204,7 +204,8 @@ const TagIntroduction = () => {
|
||||||
data={{
|
data={{
|
||||||
slug_name: tagName || '',
|
slug_name: tagName || '',
|
||||||
main_tag_slug_name: '',
|
main_tag_slug_name: '',
|
||||||
display_name: '',
|
display_name:
|
||||||
|
tagInfo?.display_name || tagInfo?.slug_name || '',
|
||||||
recommend: false,
|
recommend: false,
|
||||||
reserved: false,
|
reserved: false,
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue