Skip to content

Commit

Permalink
fix: change typing notation in QueryAndSaveBtns
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-m committed Jan 21, 2022
1 parent 42ddb76 commit d597980
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions superset-frontend/src/explore/components/QueryAndSaveBtns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ export default function QueryAndSaveBtns(props: QueryAndSaveBtnsProps) {
chartIsStale,
errorMessage,
} = props;
let qryButtonStyle = 'tertiary' as ButtonStyle;
let qryButtonStyle: ButtonStyle = 'tertiary';
if (errorMessage) {
qryButtonStyle = 'danger' as ButtonStyle;
qryButtonStyle = 'danger';
} else if (chartIsStale) {
qryButtonStyle = 'primary' as ButtonStyle;
qryButtonStyle = 'primary';
}

const saveButtonDisabled = errorMessage ? true : loading;
Expand Down

0 comments on commit d597980

Please sign in to comment.