From 98d3a6bb11acca1ba0fbd95b007fbfc89e36906f Mon Sep 17 00:00:00 2001 From: Danilo Woznica Date: Wed, 13 Sep 2023 13:27:10 +0000 Subject: [PATCH] fix(node): fix issue with undefined startRoute in iframePreviewUrl --- sandpack-client/src/clients/node/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandpack-client/src/clients/node/index.ts b/sandpack-client/src/clients/node/index.ts index 0766ea367..644271438 100644 --- a/sandpack-client/src/clients/node/index.ts +++ b/sandpack-client/src/clients/node/index.ts @@ -182,7 +182,7 @@ export class SandpackNode extends SandpackClient { const { url } = await this.emulator.preview.getByShellId(id); - this.iframePreviewUrl = url + this.options.startRoute; + this.iframePreviewUrl = url + this.options.startRoute ?? ""; } /**