Commit 9f67ff7f by zhaochengxiang

bug fix

parent ce68e3de
......@@ -871,7 +871,7 @@ const ItemTitle = ({ name, cnName, validateReports }) => {
export const ValidateTip = ({ validateReports, type, propertyName, iid }) => {
const reports = useMemo(() => {
const index = (validateReports??[]).findIndex(item => (
(item.type === type) && (!item.iid || item.iid === iid)
(item.type === type) && (!iid || item.iid === iid)
))
if (index !== -1) {
const items = (validateReports[index].reportItems??[]).filter(item => item.checkRule?.ruleTemplate?.checkProperty?.originalPropertyEnName === propertyName)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment