const _getState = getState(),
      _getState$data = _getState.data,
      _getState$data2 = _getState$data === void 0 ? {} : _getState$data,
      _getState$data2$cours = _getState$data2.courses,
      oldCourses = _getState$data2$cours === void 0 ? [] : _getState$data2$cours;
