Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz committed Apr 5, 2023
1 parent bc59990 commit b5db453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -178,7 +178,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
2 changes: 1 addition & 1 deletion sandpack-react/src/components/Preview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const SandpackPreview = React.forwardRef<
actionsChildren = <></>,
children,
className,
startRoute,
startRoute = "/",
...props
},
ref
Expand Down

0 comments on commit b5db453

Please sign in to comment.