diff --git a/comps/list/TableList.tsx b/comps/list/TableList.tsx index aec92bc..14752f7 100755 --- a/comps/list/TableList.tsx +++ b/comps/list/TableList.tsx @@ -247,7 +247,7 @@ export const TableList: FC = ({ local.render(); done(); - if (local.grid_ref) local.paging.scroll(local.grid_ref); + if (local.grid_ref && !id_parent) local.paging.scroll(local.grid_ref); }; if (result instanceof Promise) { diff --git a/session/client.ts b/session/client.ts index b928cad..72e6c1e 100755 --- a/session/client.ts +++ b/session/client.ts @@ -13,7 +13,6 @@ export const sessionClient = async (arg: { editorSampleData: T; auth: { mode: "user-pass"; - login: (arg: { username: string; password: string }) => Promise; }; on?: Partial<{ active: (arg: { token: string; data: T }) => any; diff --git a/session/server.ts b/session/server.ts index d573078..e2c486d 100755 --- a/session/server.ts +++ b/session/server.ts @@ -12,7 +12,16 @@ type ServerSession = { }) => Promise; }; -export const sessionServer = (arg: { encrypt?: boolean }): ServerSession => { +export const sessionServer = (arg: { + encrypt?: boolean; + on: { + login: (arg: { + mode: "user-pass"; + username: string; + password: string; + }) => Promise; + }; +}): ServerSession => { const s: ServerSession = { async handle({ req, handle, mode, url }) { if (url.pathname.startsWith("/_session")) {