Skip to content

Commit 8d36cd9

Browse files
committed
Make open-in-editor functionality to work with new iframe script
1 parent 64ef981 commit 8d36cd9

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

packages/react-error-overlay/src/iframeScript.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,22 @@ function render({
1919
currentBuildError,
2020
currentRuntimeErrorRecords,
2121
dismissRuntimeErrors,
22-
launchEditorEndpoint,
22+
openInEditor,
2323
}) {
2424
if (currentBuildError) {
25-
return <CompileErrorContainer error={currentBuildError} />;
25+
return (
26+
<CompileErrorContainer
27+
error={currentBuildError}
28+
openInEditor={openInEditor}
29+
/>
30+
);
2631
}
2732
if (currentRuntimeErrorRecords.length > 0) {
2833
return (
2934
<RuntimeErrorContainer
3035
errorRecords={currentRuntimeErrorRecords}
3136
close={dismissRuntimeErrors}
32-
launchEditorEndpoint={launchEditorEndpoint}
37+
openInEditor={openInEditor}
3338
/>
3439
);
3540
}

packages/react-error-overlay/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function updateIframeContent() {
153153
currentBuildError,
154154
currentRuntimeErrorRecords,
155155
dismissRuntimeErrors,
156-
launchEditorEndpoint: currentRuntimeErrorOptions.launchEditorEndpoint,
156+
openInEditor,
157157
});
158158

159159
if (!isRendered) {

0 commit comments

Comments
 (0)