Skip to content

Commit

Permalink
Don't send zero-length tag_cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis committed Dec 16, 2024
1 parent 0e704d0 commit 7de247a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/inventory/dim-item-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,10 @@ export function cleanInfos(stores: DimStore[]): ThunkResult {
`${cleanupIds.size - eligibleCleanupIds.length} infos have IDs newer than the newest ID in inventory`,
);
}
infoLog('cleanInfos', `Purging tag/notes from ${eligibleCleanupIds.length} deleted items`);
dispatch(tagCleanup(eligibleCleanupIds));
if (eligibleCleanupIds.length > 0) {
infoLog('cleanInfos', `Purging tag/notes from ${eligibleCleanupIds.length} deleted items`);
dispatch(tagCleanup(eligibleCleanupIds));
}
}
};
}
Expand Down

0 comments on commit 7de247a

Please sign in to comment.