king
2022-05-22 60e8ac11ce15bff0454accc2a2b79780dae63e60
src/tabviews/custom/components/card/data-card/index.jsx
@@ -328,7 +328,15 @@
  checkTopLine = (id) => {
    const { config, data } = this.state
    if (!data || data.length === 0 || data[0].$disabled) {
    let index = 0
    if (id && data) {
      index = data.findIndex(item => item.$$uuid === id)
      if (index === -1) {
        index = 0
      }
    }
    if (!data || data.length === 0 || data[index].$disabled) {
      this.setState({
        activeKey: '',
        selectKeys: [],
@@ -340,14 +348,6 @@
        MKEmitter.emit('syncBalconyData', config.uuid, [], false)
      }
      return
    }
    let index = 0
    if (id) {
      index = data.findIndex(item => item.$$uuid === id)
      if (index === -1) {
        index = 0
      }
    }
    this.setState({