fix
This commit is contained in:
parent
a03e57a4d9
commit
fa81b06fc4
|
|
@ -91,7 +91,7 @@ const ProjectMaterialsCenter: React.FC<ProjectMaterialsCenterProps> = ({
|
||||||
})
|
})
|
||||||
|
|
||||||
// 类型过滤
|
// 类型过滤
|
||||||
let matchesType = material.tags.includes(filterType)
|
let matchesType = filterType === 'all' ? true : material.tags.includes(filterType)
|
||||||
|
|
||||||
// 使用状态过滤
|
// 使用状态过滤
|
||||||
let matchesUsage = true
|
let matchesUsage = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue