From 0b1d05b0a7225abf0adbd08a9059a5c349b511e8 Mon Sep 17 00:00:00 2001 From: Christopher Pappas Date: Wed, 6 Dec 2017 21:15:38 -0800 Subject: [PATCH] [CHANGELOG] Update tslint settings; clean up project --- CHANGELOG.md | 1 + src/lib/Components/Inbox/Conversations/index.tsx | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2af1e45f0b..13d5300ad0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Move pagination from home/sale index to LotsByfollowedArtists, misc QA - chris - Only load a single Works For You page at a time - alloy - Get rid of image view flag that would skip on-the-fly resizing - alloy +- Add noUnusedLocals / noUnusedParameters to tslint config; clean up refs in app -chris ### 1.4.0-beta.9 diff --git a/src/lib/Components/Inbox/Conversations/index.tsx b/src/lib/Components/Inbox/Conversations/index.tsx index 0ee67352e4..116ae00c99 100644 --- a/src/lib/Components/Inbox/Conversations/index.tsx +++ b/src/lib/Components/Inbox/Conversations/index.tsx @@ -64,8 +64,15 @@ export class Conversations extends React.Component { } this.setState({ fetchingNextPage: true }) - this.props.relay.refetchConnection(10, () => { - this.setState({ fetchingNextPage: false }) + this.props.relay.refetchConnection(10, error => { + if (error) { + // FIXME: Handle error + console.error("Conversations/index.jsx |", error) + } + + this.setState({ + fetchingNextPage: false, + }) if (callback) { callback()