Skip to content

Commit 0605996

Browse files
authored
Fix handling pageSize=0 (#1364)
1 parent 7dbd933 commit 0605996

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ export async function showDataView(source: string, type: string, title: string,
390390

391391
export async function getTableHtml(webview: Webview, file: string): Promise<string> {
392392
resDir = isGuestSession ? guestResDir : resDir;
393-
const pageSize = config().get<number>('session.data.pageSize') || 500;
393+
const pageSize = config().get<number>('session.data.pageSize', 500);
394394
const content = await readContent(file, 'utf8');
395395
return `
396396
<!DOCTYPE html>

0 commit comments

Comments
 (0)