Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an issue with updatePackageJsonInEditorState (#6333)
**Problem:** `updatePackageJsonInEditorState` was providing incorrect arguments to the `codeFile` factory function when updating the package.json file. **Fix:** Fix it. **Side note:** IMO the `codeFile` function should always be `RevisionsState.CodeAheadButPleaseTellVSCodeAboutIt` by default, since it is typically used as a convenient way to create a new `TextFile` from the design side of Utopia. However, I tried making that change and it broke far too much of the editor, somehow resulting in the project contents being entirely wiped, so I'd rather just leave it be for the moment. **Manual Tests:** I hereby swear that: - [x] I opened a hydrogen project and it loaded - [x] I could navigate to various routes in Preview mode Fixes #6328
- Loading branch information