From 6f3699c79204dfbcbf0917a7220cfbf0e54e4485 Mon Sep 17 00:00:00 2001 From: Nick Sinopoli Date: Wed, 3 Jun 2015 20:37:55 -0400 Subject: [PATCH] Don't use assignment in condition --- react-sortable-mixin.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/react-sortable-mixin.js b/react-sortable-mixin.js index c40c15f..1076d59 100644 --- a/react-sortable-mixin.js +++ b/react-sortable-mixin.js @@ -139,7 +139,9 @@ modelName = _getModelName(this), items; - if (items = nextProps[modelName]) { + items = nextProps[modelName]; + + if (items) { newState[modelName] = items; this.setState(newState); }