Don't destroy discussion list in case of a redraw

This commit is contained in:
Toby Zerner 2015-06-19 14:35:01 +09:30
parent b2d2bfa34e
commit 82f487c4bb

View File

@ -19,7 +19,12 @@ export default class TagNavItem extends NavItem {
m('a', {
href: this.props.href,
config: m.route,
onclick: () => {app.cache.discussionList = null; m.redraw.strategy('none')},
onclick: () => {
if (app.cache.discussionList) {
app.cache.discussionList.forceReload = true;
}
m.redraw.strategy('none');
},
style: (active && tag) ? 'color: '+tag.color() : '',
title: description || ''
}, [