From 7661cacb090ce25abe9f2671234286143f47db2f Mon Sep 17 00:00:00 2001 From: Kun Ren Date: Mon, 15 May 2023 16:20:12 +0800 Subject: [PATCH] Fix handling pageSize=0 --- src/session.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session.ts b/src/session.ts index be941901a..b5959019a 100644 --- a/src/session.ts +++ b/src/session.ts @@ -390,7 +390,7 @@ export async function showDataView(source: string, type: string, title: string, export async function getTableHtml(webview: Webview, file: string): Promise { resDir = isGuestSession ? guestResDir : resDir; - const pageSize = config().get('session.data.pageSize') || 500; + const pageSize = config().get('session.data.pageSize', 500); const content = await readContent(file, 'utf8'); return `