From eba1db736d9c38f65b1ebbc43d00095f4bc60070 Mon Sep 17 00:00:00 2001 From: Christian Alfoni Date: Mon, 6 Nov 2017 09:07:05 +0100 Subject: [PATCH] bumped --- package.json | 2 +- src/common/computed/signalsList.js | 1 + src/components/Debugger/index.js | 8 ++++---- src/modules/Debugger/actions/runMutation.js | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 7db9215..915a20d 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cerebral-debugger", - "version": "1.4.2", + "version": "1.5.0", "description": "Cerebral Debugger", "private": true, "main": "electron/main.js", diff --git a/src/common/computed/signalsList.js b/src/common/computed/signalsList.js index a379ddd..5f3f612 100644 --- a/src/common/computed/signalsList.js +++ b/src/common/computed/signalsList.js @@ -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 diff --git a/src/components/Debugger/index.js b/src/components/Debugger/index.js index 430a988..8eb6b51 100644 --- a/src/components/Debugger/index.js +++ b/src/components/Debugger/index.js @@ -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}) } @@ -186,12 +186,12 @@ class Debugger extends Component { return (

Ops, something bad happened :(

-

{this.state.error}

- +

{this.state.error.message}

+ {this.state.error.stack.split('\n').map((line) =>
{line}
)} +
) } - if (this.state.isLoading) { return null } diff --git a/src/modules/Debugger/actions/runMutation.js b/src/modules/Debugger/actions/runMutation.js index 00a8d63..6fa9133 100644 --- a/src/modules/Debugger/actions/runMutation.js +++ b/src/modules/Debugger/actions/runMutation.js @@ -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,