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
Some checks failed
Automated Container Build / build-and-push (push) Failing after 1m0s
This commit is contained in:
parent
218fb40743
commit
2152ec9a8f
3 changed files with 9 additions and 5 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Reference in a new issue