Merge pull request #946 from xodio/fix-update-watch-nodes

Fix watch nodes not updating in debug mode
This commit is contained in:
Evgeny Kochetkov
2017-12-11 18:43:22 +03:00
committed by GitHub
3 changed files with 5 additions and 17 deletions

View File

@@ -38,7 +38,6 @@ describe('IDE: Blink project', () => {
.then(() => ide.page.assertNoPatchesAreOpen())
// close patch group to restore initial state
.then(() => ide.page.findPatchGroup(patchGroup).click())
.then(() => ide.page.assertPatchGroupCollapsed(patchGroup))
);
});

View File

@@ -4,7 +4,7 @@ const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
const assert = chai.assert;
const { assert } = chai;
//-----------------------------------------------------------------------------
// Func utils

View File

@@ -23,21 +23,10 @@ class Node extends React.Component {
shouldComponentUpdate(newProps) {
return !R.eqBy(
R.pick([
'id',
'label',
'type',
'pins',
'size',
'position',
'dead',
'isSelected',
'isGhost',
'isDragged',
'hidden',
'noEvents',
'linkingPin',
'pinLinkabilityValidator',
R.omit([
'onMouseDown',
'onMouseUp',
'onDoubleClick',
]),
newProps,
this.props