diff options
author | monikahedman <monika_hedman@brown.edu> | 2019-08-23 22:21:15 -0400 |
---|---|---|
committer | monikahedman <monika_hedman@brown.edu> | 2019-08-23 22:21:15 -0400 |
commit | 1b5a75b39b6588ce02e4579961a01316627cf47f (patch) | |
tree | e4084f093f867c950d1bb4ff6fec2005bbb0cfc6 | |
parent | 34699f81960504143057451a1959c80f268c07d4 (diff) |
jk now it does, about to start cleaning up
-rw-r--r-- | src/client/views/linking/LinkFollowBox.tsx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/client/views/linking/LinkFollowBox.tsx b/src/client/views/linking/LinkFollowBox.tsx index f58e0c8b0..f78446771 100644 --- a/src/client/views/linking/LinkFollowBox.tsx +++ b/src/client/views/linking/LinkFollowBox.tsx @@ -77,11 +77,17 @@ export class LinkFollowBox extends React.Component<FieldViewProps> { } }); - if (shouldReturn) { (() => { this.canPan = false; }); return; } + if (shouldReturn) { + runInAction(() => { this.canPan = false; }); + } } - else { runInAction(() => { this.canPan = false; }); return; } + else { + runInAction(() => { this.canPan = false; }); + } + } + else { + runInAction(() => { this.canPan = false; }); } - else { runInAction(() => { this.canPan = false; }); return; } } ); } |