Fix: thumbnail border styles and auto-refresh logic
All checks were successful
Automated Container Build / build-and-push (push) Successful in 41s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 41s
This commit is contained in:
parent
a87bb351d0
commit
d8526afd45
3 changed files with 20 additions and 3 deletions
|
|
@ -122,6 +122,12 @@ export default function OfficeHome({ type, onFileSelect, onCreateBlank, onPinCha
|
|||
useEffect(() => {
|
||||
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(() => {
|
||||
fetchFiles();
|
||||
}, 12000);
|
||||
return () => clearTimeout(timer);
|
||||
}, [type]);
|
||||
|
||||
// Close context menu on click elsewhere
|
||||
|
|
|
|||
Reference in a new issue