message: fix unnecessary check when deleting dashboard
diff: @@ -241,10 +241,15 @@ export class Dashboard extends React.Component<IDashboardProps, IDashboardStates
  }
  private onModalOk = () => {
  + const { formType, checkedKeys } = this.state
  +
  + if (formType === 'delete') {
  + const id = this.dashboardForm.props.form.getFieldValue('id')
  + this.confirmDeleteDashboard(id)
  + } else {
  this.dashboardForm.props.form.validateFieldsAndScroll((err, values) => {
  if (!err) {
  const { dashboards, params, router, onEditDashboard, onAddDashboard, viewTeam } = this.props
  - const { formType, checkedKeys } = this.state
  const { id, name, folder, selectType, index, config } = values
  const teamIds = toListBF(viewTeam).map((t) => t.id).filter((item) => !checkedKeys.includes(item))
  @@ -302,13 +307,11 @@ export class Dashboard extends React.Component<IDashboardProps, IDashboardStates
  case 'move':
  onEditDashboard('move', moveObj, () => { this.hideDashboardForm() })
  break
  - case 'delete':
  - this.confirmDeleteDashboard(id)
  - break
  }
  }
  })
  }
  + }
  private onExpand = (expandedKeys) => {
  this.setState({
  