Skip to content

Commit

Permalink
var name change and null
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolagigic committed Jan 11, 2021
1 parent 17834a3 commit 3ccae72
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions superset-frontend/src/explore/components/SaveModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ class SaveModal extends React.Component<SaveModalProps, SaveModalState> {
}

render() {
const selectValue =
this.state.newDashboardName || this.state.saveToDashboardId || null;
const dashboardSelectValue =
this.state.newDashboardName || this.state.saveToDashboardId;
return (
<Modal
show
Expand Down Expand Up @@ -249,7 +249,9 @@ class SaveModal extends React.Component<SaveModalProps, SaveModalState> {
creatable
onChange={this.onDashboardSelectChange}
autoSize={false}
value={selectValue ? { value: selectValue } : null}
value={
dashboardSelectValue ? { value: dashboardSelectValue } : null
}
placeholder={
// Using markdown to allow for good i18n
<ReactMarkdown
Expand Down

0 comments on commit 3ccae72

Please sign in to comment.