aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-18 13:52:33 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commitb57bc9e47837e55b4ad159439ab3b1b16d20f24e (patch)
tree4c99fe66632a83ff63c51ad9d3e2321eefb4c254 /vnext
parentab09cb3b3aed7105570c387d9c4ff18e7f5c544c (diff)
fix search paging
Diffstat (limited to 'vnext')
-rw-r--r--vnext/src/components/Feeds.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js
index 5d084f3c..b58db490 100644
--- a/vnext/src/components/Feeds.js
+++ b/vnext/src/components/Feeds.js
@@ -16,7 +16,7 @@ export function Discover(props) {
const query = {
baseUrl: '/messages',
search: search,
- pageParam: props.search ? 'page' : 'before_mid'
+ pageParam: search ? 'page' : 'before_mid'
};
return (<Feed authRequired={false} query={query} {...props} />);
}
@@ -36,7 +36,7 @@ export function Blog(props) {
const query = {
baseUrl: '/messages',
search: search,
- pageParam: props.search ? 'page' : 'before_mid'
+ pageParam: search ? 'page' : 'before_mid'
};
return (<Feed authRequired={false} query={query} {...props} />);
}