Skip to content

Commit

Permalink
Merge pull request #102 from concord-consortium/188300239-fix-new-tab…
Browse files Browse the repository at this point in the history
…le-bug

188300239 Fix joining with a new table
  • Loading branch information
tealefristoe authored Sep 19, 2024
2 parents b09d7df + 2a0f015 commit 042a2d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ export default class App extends Component {
const handleDataContextChange = (event: ChangeEvent<HTMLSelectElement>) => this.handleDataContextChange(event);
const initiateShare = (selectedContext?: string) => {
if (selectedContext) this.setState({ selectedDataContext: selectedContext });
this.initiateShare()
this.initiateShare();
};
const joinShare = (selectedContext?: string) => {
if (selectedContext) this.setState({ selectedDataContext: selectedContext });
this.joinShare()
}
this.joinShare();
};

const availableContextOptions = availableDataContexts.map((dc: DataContext) =>
<option key={dc.name} value={dc.name}>{dc.title ?? dc.name}</option>
Expand Down
2 changes: 1 addition & 1 deletion src/ui-pages/join-without-merging.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const JoinWithoutMerging = (props: JoinWithoutMergingProps) => {
</button>
<button
disabled={!joinShareId || (!personalDataLabel && !lastPersonalDataLabel)}
onClick={joinShare}>
onClick={() => joinShare()}>
{BEGIN_COLLABORATION}
</button>
</div>
Expand Down

0 comments on commit 042a2d4

Please sign in to comment.