diff --git a/views/index.cjsx b/views/index.cjsx index d301678..45c7170 100644 --- a/views/index.cjsx +++ b/views/index.cjsx @@ -9,7 +9,7 @@ ItemInfoArea = React.createClass getInitialState: -> itemTypeChecked = new Array(maxSlotType + 1) itemTypeChecked.fill true - itemTypeChecked: itemTypeChecked + {itemTypeChecked} changeCheckbox: (callback) -> callback @state.itemTypeChecked diff --git a/views/item-info-checkbox-area.cjsx b/views/item-info-checkbox-area.cjsx index 7710815..69d2a45 100644 --- a/views/item-info-checkbox-area.cjsx +++ b/views/item-info-checkbox-area.cjsx @@ -29,12 +29,12 @@ ItemInfoCheckboxArea = React.createClass onChange={@handleClickCheckbox.bind(@, index)} onContextMenu={@handleClickCheckboxRightClick.bind(@, index)} checked={isChecked} - /> + /> + /> } diff --git a/views/item-info-table-area.cjsx b/views/item-info-table-area.cjsx index 10f8dc5..70fbb1b 100644 --- a/views/item-info-table-area.cjsx +++ b/views/item-info-table-area.cjsx @@ -135,8 +135,7 @@ ItemInfoTableArea = React.createClass rows.sort (a, b) -> a.iconIndex - b.iconIndex for row in rows for shipsInLevel in row.ships - shipsInLevel?.sort (a, b) -> - b.level - a.level || a.id - b.id + shipsInLevel?.sort (a, b) -> b.level - a.level || a.id - b.id rows handleFilterNameChange: -> key = @refs.input.getValue() @@ -150,8 +149,7 @@ ItemInfoTableArea = React.createClass filterName ?= (name) -> name.indexOf(key) >= 0 else filterName = @alwaysTrue - @setState - filterName: filterName + @setState {filterName} alwaysTrue: -> true handleResponse: (e) -> {method, path, body, postBody} = e.detail