Skip to content

Commit 4af3610

Browse files
authored
fix(notebooks): generate HTML for the main view instead of preview view (#5494)
1 parent d01da6c commit 4af3610

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/frontend/lib/notebook/utils-server.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ async function generateNotebookHtml(browser: Browser, url: string) {
4242
hidden: true,
4343
});
4444
logger.info("Spinner disappeared.");
45-
const previewButton = await page.waitForSelector("[id='preview-button']", {
46-
timeout: LONG_TIMEOUT_MS,
47-
});
45+
// const previewButton = await page.waitForSelector("[id='preview-button']", {
46+
// timeout: LONG_TIMEOUT_MS,
47+
// });
4848

49-
await previewButton?.click();
49+
// await previewButton?.click();
5050

51-
logger.info("Clicked preview button, waiting for interrupt button...");
51+
// logger.info("Clicked preview button, waiting for interrupt button...");
5252
// Wait for the interrupt button to have the inactive-button class for at least 10 seconds
5353
await page.waitForFunction(
5454
() => {

0 commit comments

Comments
 (0)