mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-28 12:36:42 +00:00
Fetch all logos when running cleanup.
This commit is contained in:
parent
c35c02c64b
commit
59dd6383eb
1 changed files with 2 additions and 2 deletions
|
|
@ -227,7 +227,7 @@ const LogosTable = () => {
|
|||
setIsCleaningUp(true);
|
||||
try {
|
||||
const result = await API.cleanupUnusedLogos(deleteFiles);
|
||||
await fetchLogos(); // Refresh the logos list
|
||||
await fetchAllLogos(); // Refresh all logos to maintain full view
|
||||
|
||||
let message = `Successfully deleted ${result.deleted_count} unused logos`;
|
||||
if (result.local_files_deleted > 0) {
|
||||
|
|
@ -251,7 +251,7 @@ const LogosTable = () => {
|
|||
setSelectedRows(new Set()); // Clear selections after cleanup
|
||||
}
|
||||
},
|
||||
[fetchLogos]
|
||||
[fetchAllLogos]
|
||||
);
|
||||
|
||||
const editLogo = useCallback(async (logo = null) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue