Skip to content

Commit 9ba293e

Browse files
authored
fix: the docker image which no tag but used be pruned (#8529)
1 parent 8fa9f12 commit 9ba293e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • frontend/src/views/container/image/prune

frontend/src/views/container/image/prune/index.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ const acceptParams = async (): Promise<void> => {
7070
unUsedList.value = [];
7171
for (const item of list) {
7272
if (
73-
!item.tags ||
74-
item.tags.length === 0 ||
75-
(item.tags.length === 1 && item.tags[0].indexOf('<none>') !== -1 && !item.isUsed)
73+
(
74+
!item.tags ||
75+
item.tags.length === 0 ||
76+
(item.tags.length === 1 && item.tags[0].indexOf('<none>') !== -1)
77+
) && !item.isUsed
7678
) {
7779
unTagList.value.push(item);
7880
}

0 commit comments

Comments
 (0)