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

This commit is contained in:
Elijah 2026-05-25 15:11:58 -07:00
parent d8526afd45
commit d4e66c9afa
3 changed files with 13 additions and 11 deletions

View file

@ -123,11 +123,11 @@ export default function OfficeHome({ type, onFileSelect, onCreateBlank, onPinCha
fetchFiles();
api.createDownloadToken().then(setDownloadToken).catch(console.error);
// Refresh files after 12 seconds to catch any debounced thumbnail updates from recent edits
const timer = setTimeout(() => {
// Refresh files periodically to catch any debounced thumbnail updates from recent edits
const timer = setInterval(() => {
fetchFiles();
}, 12000);
return () => clearTimeout(timer);
}, 15000);
return () => clearInterval(timer);
}, [type]);
// Close context menu on click elsewhere