Skip to content

Commit

Permalink
bumped
Browse files Browse the repository at this point in the history
  • Loading branch information
christianalfoni committed Nov 6, 2017
1 parent 36216ff commit eba1db7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cerebral-debugger",
"version": "1.4.2",
"version": "1.5.0",
"description": "Cerebral Debugger",
"private": true,
"main": "electron/main.js",
Expand Down
1 change: 1 addition & 0 deletions src/common/computed/signalsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default compute(
state`debugger.signals`,
(signals) => {
return Object.keys(signals)
.filter(id => Boolean(signals[id].name))
.sort((keyA, keyB) => {
if (signals[keyA].datetime > signals[keyB].datetime) {
return -1
Expand Down
8 changes: 4 additions & 4 deletions src/components/Debugger/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Debugger extends Component {
this.removePort = this.removePort.bind(this)
}
componentDidMount () {
window.onerror = (error, mip, mop, stack) => {
window.onerror = (_, _2, _3, _4, error) => {
this.setState({error})
}

Expand Down Expand Up @@ -186,12 +186,12 @@ class Debugger extends Component {
return (
<div class='error'>
<h1>Ops, something bad happened :(</h1>
<h4>{this.state.error}</h4>
<button onClick={() => window.location.reload()}>restart debugger</button>
<h4>{this.state.error.message}</h4>
{this.state.error.stack.split('\n').map((line) => <div style={{fontSize: '10px', textAlign: 'left'}}>{line}</div>)}
<button style={{marginTop: '10px'}}onClick={() => window.location.reload()}>restart debugger</button>
</div>
)
}

if (this.state.isLoading) {
return null
}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Debugger/actions/runMutation.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function runMutation ({props, state}) {
const args = data.args.slice()
const path = ['debugger', 'model'].concat(args.shift()).join('.')

state[data.method].apply(null, [path, ...args])
state[data.method].apply(null, [path, ...JSON.parse(JSON.stringify(args))])
} catch (e) {
state.set('mutationsError', {
signalName: execution.name,
Expand Down

0 comments on commit eba1db7

Please sign in to comment.