mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-06 05:24:33 +08:00
fix: the docker image which no tag but used be pruned (#8529)
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 5s
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 5s
This commit is contained in:
parent
8fa9f128d8
commit
9ba293e154
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue