fix: pinned sidebars not updating on rename, clear tokens on auth error
Some checks failed
Automated Container Build / build-and-push (push) Failing after 1m0s

This commit is contained in:
Elijah 2026-05-31 15:24:44 -07:00
parent 218fb40743
commit 2152ec9a8f
3 changed files with 9 additions and 5 deletions

View file

@ -777,6 +777,7 @@ export default function FileExplorer({ onLogout }: FileExplorerProps) {
setRenaming(null);
setNewName('');
loadFiles(undefined, true);
setPinnedRefreshCounter(c => c + 1);
showToast(`Renamed to ${finalName}`);
}
@ -1958,6 +1959,7 @@ export default function FileExplorer({ onLogout }: FileExplorerProps) {
loadFiles();
}}
onPinChange={() => setPinnedRefreshCounter(c => c + 1)}
onRename={() => setPinnedRefreshCounter(c => c + 1)}
/>
) : (
<div className="flex flex-1 overflow-hidden">