From 4f65458afddd80ff0f4a36af0f9a228cd2805072 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Sun, 15 Jul 2018 18:38:26 +0300
Subject: Fix navigation from blog to blog
---
vnext/src/App.js | 4 ++--
vnext/src/components/Feeds.js | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
(limited to 'vnext/src')
diff --git a/vnext/src/App.js b/vnext/src/App.js
index f3f48152..aa159f14 100644
--- a/vnext/src/App.js
+++ b/vnext/src/App.js
@@ -215,10 +215,10 @@ export default class App extends React.Component {
Comments: {user.statsReplies}
{
- user.iread &&
+ user.read &&
{
- user.iread.map(u =>
)
+ user.read.map(u =>
)
}
}
diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js
index 3cbc7d4b..a504bbb8 100644
--- a/vnext/src/components/Feeds.js
+++ b/vnext/src/components/Feeds.js
@@ -72,7 +72,7 @@ class Feed extends React.Component {
}
getSnapshotBeforeUpdate(prevProps) {
return (this.props.location.search != prevProps.location.search
- || this.props.visitor != prevProps.visitor);
+ || this.props.visitor != prevProps.visitor || this.props.query.search != prevProps.query.search);
}
componentDidUpdate(prevProps, prevState, shouldReload) {
if (shouldReload) {
--
cgit v1.2.3