mirror of
https://github.com/morpheus65535/bazarr
synced 2025-03-04 02:18:12 +00:00
Fix a issue that ui will crash when first entering history view
This commit is contained in:
parent
833ecb34e8
commit
7b9c19d7c0
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
import { useCallback } from "react";
|
||||
import { useLocalstorage } from "rooks";
|
||||
import { useLocalstorageState } from "rooks";
|
||||
|
||||
export const uiPageSizeKey = "storage-ui-pageSize";
|
||||
|
||||
|
@ -13,5 +13,5 @@ export function useUpdateLocalStorage() {
|
|||
}
|
||||
|
||||
export function usePageSize() {
|
||||
return useLocalstorage(uiPageSizeKey, 50);
|
||||
return useLocalstorageState(uiPageSizeKey, 50);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue