Skip to content

Commit 1001075

Browse files
authored
Merge pull request #12 from demartsc/fix/updates-from-sandbox
chore: move changes from sandbox back to main
2 parents f0518d9 + 426445f commit 1001075

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Extension.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class App extends Component {
8686
this.state.config.tableauExt.setClickThroughAsync(false).then(() => {
8787
this.state.config.tableauExt.settings.set('annotationPassThroughMode', 'no');
8888
this.state.config.tableauExt.settings.saveAsync().then(()=>{
89-
this.props.history.push('/')
89+
this.props.history.push('/viz')
9090
});
9191
});
9292
}
@@ -172,7 +172,8 @@ class App extends Component {
172172
/>}
173173
/>
174174
<Route exact path="/viz" render={(props) =>
175-
<Viz
175+
<Viz // pass the click through setting into key to force re-render on change
176+
key={`tableau-react-annotation-${this.state.config.tableauExt.settings.get('annotationPassThroughMode')}`}
176177
extensionIcons={this.props.extensionIcons}
177178
sheetNames={this.state.config.sheetNames}
178179
tableauSettings={this.state.config.tableauSettings}

0 commit comments

Comments
 (0)