Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 1255d7d

Browse files
authored
Merge pull request #3594 from withspectrum/2.4.20
2.4.20
2 parents 240bb23 + 59b4b5d commit 1255d7d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Spectrum",
3-
"version": "2.4.19",
3+
"version": "2.4.20",
44
"license": "BSD-3-Clause",
55
"devDependencies": {
66
"babel-cli": "^6.24.1",

shared/graphql/queries/thread/getThreadMessageConnection.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,12 @@ export const getThreadMessageConnectionOptions = {
8686
if (props.location && props.location.search) {
8787
const params = queryString.parse(props.location.search);
8888

89-
variables.after = params && params.m ? params.m : null;
90-
variables.last = null;
91-
// $FlowFixMe
92-
variables.first = 50;
89+
if (params && params.m) {
90+
variables.after = params.m;
91+
variables.last = null;
92+
// $FlowFixMe
93+
variables.first = 50;
94+
}
9395
}
9496

9597
return {

0 commit comments

Comments
 (0)