fix: the docker image which no tag but used be pruned (#8529)

This commit is contained in:
Wankko Ree
2025-05-03 13:25:24 +08:00
committed by GitHub
parent 8fa9f128d8
commit 9ba293e154
@@ -70,9 +70,11 @@ const acceptParams = async (): Promise<void> => {
unUsedList.value = [];
for (const item of list) {
if (
!item.tags ||
item.tags.length === 0 ||
(item.tags.length === 1 && item.tags[0].indexOf('<none>') !== -1 && !item.isUsed)
(
!item.tags ||
item.tags.length === 0 ||
(item.tags.length === 1 && item.tags[0].indexOf('<none>') !== -1)
) && !item.isUsed
) {
unTagList.value.push(item);
}