From b316d626f5eab6c7a0de58e560758d876d08662b Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Mon, 30 Jan 2017 15:33:08 -0300 Subject: [PATCH] Bio and Embed Stream refresh --- client/coral-embed-stream/src/Embed.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/coral-embed-stream/src/Embed.js b/client/coral-embed-stream/src/Embed.js index 03631fe4f..ba22f20de 100644 --- a/client/coral-embed-stream/src/Embed.js +++ b/client/coral-embed-stream/src/Embed.js @@ -29,6 +29,12 @@ class Embed extends Component { state = {activeTab: 0, showSignInDialog: false}; changeTab = (tab) => { + + // Everytime the comes from another tab, the Stream needs to be updated. + if (tab === 0) { + this.props.data.refetch() + } + this.setState({ activeTab: tab });