Skip to content

Commit

Permalink
fix(node): fix issue with undefined startRoute in iframePreviewUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz committed Sep 13, 2023
1 parent 4290dbc commit 98d3a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandpack-client/src/clients/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? "";
}

/**
Expand Down

0 comments on commit 98d3a6b

Please sign in to comment.