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

This commit is contained in:
Wankko Ree
2025-06-10 16:21:32 +08:00
committed by wanghe-fit2cloud
parent 165d2b1290
commit cb87ca4361
@@ -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);
}