Commit 69fcdf7c authored by Chung Leong's avatar Chung Leong

Fixed glitch with SideNav.

parent 5efde106
......@@ -22,7 +22,7 @@
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
<engine name="android" spec="^7.1.4" />
<engine name="ios" spec="^4.5.5" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
</widget>
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -57,7 +57,6 @@ if (process.env.TARGET === 'browser') {
mtimeLast = mtime;
}
} catch (err) {
}
await delay(30 * 1000);
}
......
......@@ -298,17 +298,17 @@ class SideNavSync extends PureComponent {
let { route, postLists, selectedYear } = this.props;
let { date } = route.params;
let className, url;
if (monthEntry.year === selectedYear) {
if (date && monthEntry.year === date.year && monthEntry.month === date.month) {
className = 'selected';
}
let postList = _.find(postLists, { monthEntry });
if (!postList || !_.isEmpty(postList.posts)) {
url = route.prefetchArchiveURL(monthEntry);
} else {
className = 'disabled';
}
if (monthEntry.year !== selectedYear) {
return null;
}
if (date && monthEntry.year === date.year && monthEntry.month === date.month) {
className = 'selected';
}
let postList = _.find(postLists, { monthEntry });
if (!postList || !_.isEmpty(postList.posts)) {
url = route.prefetchArchiveURL(monthEntry);
} else {
className = 'disabled';
}
return (
<li key={i}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment