Skip to content

Commit

Permalink
more conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdotson committed Mar 16, 2021
1 parent a5f0337 commit 25c8ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset-frontend/src/dashboard/components/SaveModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class SaveModal extends React.PureComponent<SaveModalProps, SaveModalState> {
// check refresh frequency is for current session or persist
const refreshFrequency = shouldPersistRefreshFrequency
? currentRefreshFrequency
: dashboardInfo.metadata.refresh_frequency; // eslint-disable camelcase
: dashboardInfo?.metadata?.refresh_frequency; // eslint-disable camelcase

const data = {
positions,
Expand Down

0 comments on commit 25c8ed6

Please sign in to comment.