Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[node] Fix undefined startRoute option #1036

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

davidmccabe
Copy link
Contributor

What kind of change does this pull request introduce?

Fixes a bug with Nodebox when the startRoute option is not set, which caused an invalid iframe URL to be generated.

There was a previous attempt to fix this #1002 but it didn't actually fix it due to a mistake in operator precedence.

What is the current behavior?

The iframe URL has the string "undefined" appended to it.

What is the new behavior?

The iframe URL is correct.

What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.

No longer seeing the invalid URL when loading a Sandpack.

Checklist

  • [N/A ] Documentation;
  • [N/A] Storybook (if applicable);
  • [] Tests;
  • Ready to be merged;

Copy link

codesandbox bot commented Nov 15, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

vercel bot commented Nov 15, 2023

@davidmccabe is attempting to deploy a commit to the CodeSandbox Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

codesandbox-ci bot commented Nov 15, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 176cbc4:

Sandbox Source
Sandpack Configuration
sandpack-run-stale-value Configuration

@danilowoz
Copy link
Member

Ohh what a silly mistake! Thanks for fixing it 😀

@danilowoz danilowoz merged commit d4e9dc2 into codesandbox:main Nov 15, 2023
3 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants