State: put temp state directly in state, saved in state.saved

This commit is contained in:
DC
2016-03-05 15:46:57 -08:00
parent 5b383d3ed0
commit 098827ec78
5 changed files with 80 additions and 81 deletions

View File

@@ -6,8 +6,8 @@ var hx = hyperx(h)
var prettyBytes = require('pretty-bytes')
function TorrentList (state, dispatch) {
var torrents = state.temp.client
? state.temp.client.torrents
var torrents = state.client
? state.client.torrents
: []
var list = torrents.map((torrent) => renderTorrent(torrent, dispatch))