Exclude badge items from missing icon check in catalog audit
Badge items use .gif icons, not .png icons, so they should not be flagged as missing icons in the catalog audit.
This commit is contained in:
1 parent
86d59195ec
commit
e97213e5d1
1 file changed
+2
@@ -344,6 +344,8 @@ export async function runCatalogAudit(
|
||||
const missingIconClassnames: string[] = [];
|
||||
for (let i = 0; i < items.length; i++) {
|
||||
const item = items[i];
|
||||
// Badge items use .gif icons, not .png icons.
|
||||
if (item.interaction_type === "badge") continue;
|
||||
if (!iconSet.has(`${item.item_name}_icon.png`)) {
|
||||
missingIconClassnames.push(item.item_name);
|
||||
issues.push({
|
||||
|
||||
Reference in new issue
Block a user