mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 17:56:25 +02:00
chore: biome & ruff checks
This commit is contained in:
parent
35a7427b00
commit
898fc884a9
5 changed files with 30 additions and 38 deletions
|
|
@ -37,10 +37,7 @@ export interface UseDocumentsOptions {
|
|||
lazy?: boolean;
|
||||
}
|
||||
|
||||
export function useDocuments(
|
||||
searchSpaceId: number,
|
||||
options?: UseDocumentsOptions | boolean
|
||||
) {
|
||||
export function useDocuments(searchSpaceId: number, options?: UseDocumentsOptions | boolean) {
|
||||
// Support both old boolean API and new options API for backward compatibility
|
||||
const opts = typeof options === "boolean" ? { lazy: options } : options || {};
|
||||
const { page, pageSize = 300, lazy = false } = opts;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue