fix: the docker image which no tag but used be pruned (#8529)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 5s

This commit is contained in:
Wankko Ree 2025-05-03 13:25:24 +08:00 committed by GitHub
parent 8fa9f128d8
commit 9ba293e154
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,9 +70,11 @@ const acceptParams = async (): Promise<void> => {
unUsedList.value = []; unUsedList.value = [];
for (const item of list) { for (const item of list) {
if ( if (
!item.tags || (
item.tags.length === 0 || !item.tags ||
(item.tags.length === 1 && item.tags[0].indexOf('<none>') !== -1 && !item.isUsed) item.tags.length === 0 ||
(item.tags.length === 1 && item.tags[0].indexOf('<none>') !== -1)
) && !item.isUsed
) { ) {
unTagList.value.push(item); unTagList.value.push(item);
} }