fix: reflect file rename immediately (#227)
This commit is contained in:
1 parent
3031d54272
commit
a56a5c3ed8
1 file changed
+1
-1
@@ -257,7 +257,7 @@ export function FileBrowser({ errorMessage, setErrorMessage }: FileBrowserProps)
|
||||
|
||||
const sortedKey = sorted.map(f => getFileId(f)).join('|')
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
const stableSorted = useMemo(() => sorted, [sortedKey])
|
||||
const stableSorted = useMemo(() => sorted, [sortedKey, files])
|
||||
|
||||
const bulk = useBulkActions({
|
||||
listToRender,
|
||||
|
||||
Reference in new issue
Block a user