aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2016-02-02 21:22:34 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-02-02 21:22:34 +0100
commit699177d35fa766f5b9e0044909c363ad4babb2fd (patch)
treecb09082bf4473f514a22aae29d50b94a9f2fdb80 /src
parentreadding feeds menu (diff)
downloadnewspipe-699177d35fa766f5b9e0044909c363ad4babb2fd.tar.gz
newspipe-699177d35fa766f5b9e0044909c363ad4babb2fd.tar.bz2
newspipe-699177d35fa766f5b9e0044909c363ad4babb2fd.zip
ordering categories in the feed form
Diffstat (limited to 'src')
-rw-r--r--src/web/js/components/RightPanel.react.js3
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}>
bgstack15