fix: unidentified files not showing in final checklist message (#3992)
* fix: unidentified files not showing in final message * fix: remove condition
This commit is contained in:
parent
5d19d31b2c
commit
2cc6bc8ce4
@ -365,26 +365,24 @@ function getJudgements(): ModerationJudgements {
|
|||||||
const judgements: ModerationJudgements = {};
|
const judgements: ModerationJudgements = {};
|
||||||
|
|
||||||
modPackData.value.forEach((item) => {
|
modPackData.value.forEach((item) => {
|
||||||
if (item.status && item.status !== "unidentified") {
|
if (item.type === "flame") {
|
||||||
if (item.type === "flame") {
|
judgements[item.sha1] = {
|
||||||
judgements[item.sha1] = {
|
type: "flame",
|
||||||
type: "flame",
|
id: item.id,
|
||||||
id: item.id,
|
status: item.status,
|
||||||
status: item.status,
|
link: item.url,
|
||||||
link: item.url,
|
title: item.title,
|
||||||
title: item.title,
|
file_name: item.file_name,
|
||||||
file_name: item.file_name,
|
};
|
||||||
};
|
} else if (item.type === "unknown") {
|
||||||
} else if (item.type === "unknown") {
|
judgements[item.sha1] = {
|
||||||
judgements[item.sha1] = {
|
type: "unknown",
|
||||||
type: "unknown",
|
status: item.status,
|
||||||
status: item.status,
|
proof: item.proof,
|
||||||
proof: item.proof,
|
link: item.url,
|
||||||
link: item.url,
|
title: item.title,
|
||||||
title: item.title,
|
file_name: item.file_name,
|
||||||
file_name: item.file_name,
|
};
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user