Skip to content

Commit

Permalink
Fix: copy paste query address bar (#658)
Browse files Browse the repository at this point in the history
Fix: copy paste query address bar
  • Loading branch information
thewahome committed Aug 6, 2020
2 parents a7b7f7a + 84eaeaa commit f47d237
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/views/query-runner/QueryRunner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ export class QueryRunner extends Component<

if (newQueryVersion !== oldQueryVersion) {
if (newQueryVersion === 'v1.0' || newQueryVersion === 'beta') {
const sampleQuery = { ...this.props.sampleQuery };
const sampleQuery = { ...query };
sampleQuery.selectedVersion = newQueryVersion;
sampleQuery.sampleUrl = newUrl;
this.props.actions!.setSampleQuery(sampleQuery);
}
}
Expand Down

0 comments on commit f47d237

Please sign in to comment.