diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2016-02-02 21:22:34 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2016-02-02 21:22:34 +0100 |
commit | 699177d35fa766f5b9e0044909c363ad4babb2fd (patch) | |
tree | cb09082bf4473f514a22aae29d50b94a9f2fdb80 /src/web/js | |
parent | readding feeds menu (diff) | |
download | newspipe-699177d35fa766f5b9e0044909c363ad4babb2fd.tar.gz newspipe-699177d35fa766f5b9e0044909c363ad4babb2fd.tar.bz2 newspipe-699177d35fa766f5b9e0044909c363ad4babb2fd.zip |
ordering categories in the feed form
Diffstat (limited to 'src/web/js')
-rw-r--r-- | src/web/js/components/RightPanel.react.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web/js/components/RightPanel.react.js b/src/web/js/components/RightPanel.react.js index bf352a61..3b625689 100644 --- a/src/web/js/components/RightPanel.react.js +++ b/src/web/js/components/RightPanel.react.js @@ -228,7 +228,8 @@ var Feed = React.createClass({ var content = null; if(this.state.edit_mode) { var categ_options = []; - for(var cat_id in MenuStore._datas.categories) { + for(var index in MenuStore._datas.categories_order) { + var cat_id = MenuStore._datas.categories_order[index]; categ_options.push( <option value={cat_id} key={MenuStore._datas.categories[cat_id].id}> |