Fix: thumbnail worker payload for non-xlsx files and change timeout to interval for thumbnail updates
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m27s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m27s
This commit is contained in:
parent
d8526afd45
commit
d4e66c9afa
3 changed files with 13 additions and 11 deletions
|
|
@ -375,14 +375,13 @@ export default function FileExplorer({ onLogout }: FileExplorerProps) {
|
|||
}
|
||||
}, [currentPath, activeSection]);
|
||||
|
||||
// Refresh files after editing to catch the debounced thumbnail generation
|
||||
// Refresh files periodically after editing to catch debounced background thumbnail generation
|
||||
useEffect(() => {
|
||||
if (!editingFile && activeSection === 'files') {
|
||||
loadFiles(currentPath, true);
|
||||
const timer = setTimeout(() => {
|
||||
const timer = setInterval(() => {
|
||||
loadFiles(currentPath, true);
|
||||
}, 12000);
|
||||
return () => clearTimeout(timer);
|
||||
}, 15000);
|
||||
return () => clearInterval(timer);
|
||||
}
|
||||
}, [editingFile, activeSection, currentPath, loadFiles]);
|
||||
|
||||
|
|
|
|||
Reference in a new issue