Skip to content

Commit

Permalink
Clean up:
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyjbauer committed Jul 18, 2019
1 parent 9c61798 commit 7ea3357
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions frontend/src/pages/NewRun.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ class NewRun extends Page<{}, NewRunState> {
new URLParser(this.props).build({ [QUERY_PARAMS.fromRunId]: originalRunId })
: '';

const buttons = new Buttons(this.props, this.refresh.bind(this));

return (
<div className={classes(commonCss.page, padding(20, 'lr'))}>
<div className={commonCss.scrollContainer}>
Expand Down Expand Up @@ -210,7 +208,8 @@ class NewRun extends Page<{}, NewRunState> {
this.setStateSafe({ unconfirmedSelectedPipeline: selectedPipeline })}
toolbarProps={{
actions: [
buttons.upload(() => this.setStateSafe({ pipelineSelectorOpen: false, uploadDialogOpen: true })),
new Buttons(this.props, this.refresh.bind(this)).upload(
() => this.setStateSafe({ pipelineSelectorOpen: false, uploadDialogOpen: true })),
],
breadcrumbs: [],
pageTitle: '',
Expand Down Expand Up @@ -446,8 +445,6 @@ class NewRun extends Page<{}, NewRunState> {
}

protected async _pipelineSelectorClosed(confirmed: boolean): Promise<void> {
// tslint:disable-next-line:no-console
console.log('Closed!', confirmed);
let { pipeline } = this.state;
if (confirmed && this.state.unconfirmedSelectedPipeline) {
pipeline = this.state.unconfirmedSelectedPipeline;
Expand Down

0 comments on commit 7ea3357

Please sign in to comment.