fix: tags might be null
This commit is contained in:
parent
0c412f5bae
commit
c6eac312ad
@ -28,7 +28,7 @@ export default function ProblemDetails(props: ProblemDetailsProps) {
|
||||
</Space>
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="Tags">
|
||||
{details.problem.tags.Elements.map((tag) => {
|
||||
{details.problem.tags.Elements?.map((tag) => {
|
||||
return <Tag key={tag}>{tag}</Tag>;
|
||||
})}
|
||||
</Descriptions.Item>
|
||||
|
@ -31,7 +31,7 @@ const columns: ProColumns<ProblemList>[] = [
|
||||
render: (_node, entity) => {
|
||||
return (
|
||||
<Space>
|
||||
{entity.tags.map((tag) => {
|
||||
{entity.tags?.map((tag) => {
|
||||
return <Tag key={tag}>{tag}</Tag>;
|
||||
})}
|
||||
</Space>
|
||||
|
Reference in New Issue
Block a user