diff --git a/app/src/config/image.ts b/app/src/config/image.ts index c9653befe..be2f9f662 100644 --- a/app/src/config/image.ts +++ b/app/src/config/image.ts @@ -133,7 +133,11 @@ export const image = { image.element.querySelectorAll(".config-assets").forEach(item => { if (type === item.getAttribute("data-type")) { item.classList.remove("fn__none"); - if (!item.getAttribute("data-init")) { + if (type === "remove") { + fetchPost("/api/asset/getUnusedAssets", {}, response => { + image._renderList(response.data, assetsListElement, "unrefAssets"); + }); + } else if (!item.getAttribute("data-init")) { if (type === "removeAV") { fetchPost("/api/av/getUnusedAttributeViews", {}, response => { image._renderList(response.data, avListElement, "unRefAV");