Skip to content

Commit

Permalink
fix: fix crashing the editor after refresh
Browse files Browse the repository at this point in the history
Main fix was introduced as part of [email protected].

Refs #2099
  • Loading branch information
char0n committed Nov 26, 2021
1 parent a77d6f7 commit c9a4dd1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"redux": "=4.1.2",
"reselect": "^4.0.0",
"swagger-client": "^3.17.0",
"swagger-ui": "^4.1.1",
"swagger-ui": "^4.1.2",
"traverse": "^0.6.6",
"validator": "=13.7.0",
"yaml-js": "^0.3.1"
Expand Down
6 changes: 4 additions & 2 deletions src/plugins/jump-to-path/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import spec from "./spec"
import * as components from "./components"
import JumpToPath from "./jump-to-path"

export default function JumpToPathPlugin() {
return [
spec,
{
components,
components: {
JumpToPath
},
}
]
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from "react"
import PropTypes from "prop-types"

import JumpIcon from "./jump-icon.svg"

export class JumpToPath extends React.Component {
class JumpToPath extends React.Component {
static propTypes = {
editorActions: PropTypes.object.isRequired,
specSelectors: PropTypes.object.isRequired,
Expand Down Expand Up @@ -62,3 +63,5 @@ export class JumpToPath extends React.Component {
}
}
}

export default JumpToPath

0 comments on commit c9a4dd1

Please sign in to comment.