diff --git a/frontend/src/views/container/image/prune/index.vue b/frontend/src/views/container/image/prune/index.vue
index 5ae4dd8c1..b519c02d5 100644
--- a/frontend/src/views/container/image/prune/index.vue
+++ b/frontend/src/views/container/image/prune/index.vue
@@ -23,7 +23,7 @@
-
- {{ item.tags[0] }}
+ {{ item.tags[0] || '< none >' }}
@@ -66,7 +66,11 @@ const acceptParams = async (): Promise => {
unTagList.value = [];
unUsedList.value = [];
for (const item of list) {
- if (item.tags && item.tags.length === 1 && item.tags[0].indexOf('') !== -1 && !item.isUsed) {
+ if (
+ !item.tags ||
+ item.tags.length === 0 ||
+ (item.tags.length === 1 && item.tags[0].indexOf('') !== -1 && !item.isUsed)
+ ) {
unTagList.value.push(item);
}
if (!item.isUsed) {