Skip to content

Commit 08b8f5c

Browse files
committed
fix: fix crashing the editor after refresh
Main fix was introduced as part of [email protected]. Refs #2099
1 parent a77d6f7 commit 08b8f5c

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"redux": "=4.1.2",
8888
"reselect": "^4.0.0",
8989
"swagger-client": "^3.17.0",
90-
"swagger-ui": "^4.1.1",
90+
"swagger-ui": "^4.1.2",
9191
"traverse": "^0.6.6",
9292
"validator": "=13.7.0",
9393
"yaml-js": "^0.3.1"

src/plugins/jump-to-path/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import spec from "./spec"
2-
import * as components from "./components"
2+
import JumpToPath from "./jump-to-path"
33

44
export default function JumpToPathPlugin() {
55
return [
66
spec,
77
{
8-
components,
8+
components: {
9+
JumpToPath
10+
},
911
}
1012
]
1113
}

src/plugins/jump-to-path/components.jsx renamed to src/plugins/jump-to-path/jump-to-path.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import React from "react"
22
import PropTypes from "prop-types"
3+
34
import JumpIcon from "./jump-icon.svg"
45

5-
export class JumpToPath extends React.Component {
6+
class JumpToPath extends React.Component {
67
static propTypes = {
78
editorActions: PropTypes.object.isRequired,
89
specSelectors: PropTypes.object.isRequired,
@@ -62,3 +63,5 @@ export class JumpToPath extends React.Component {
6263
}
6364
}
6465
}
66+
67+
export default JumpToPath

0 commit comments

Comments
 (0)