Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 1646 | Rev 1649 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1646 Rev 1647
Línea 26... Línea 26...
26
 
26
 
27
      if (!success) {
27
      if (!success) {
28
        throw new Error(data)
28
        throw new Error(data)
Línea -... Línea 29...
-
 
29
      }
29
      }
30
 
-
 
31
      if (onComplete) {
-
 
32
        onComplete()
30
 
33
      }
31
      onComplete()
34
 
32
      dispatch(addNotification({ style: 'success', msg: data }))
35
      dispatch(addNotification({ style: 'success', msg: data.message }))
33
      dispatch(closeReportModal())
36
      dispatch(closeReportModal())
34
    } catch (error) {
37
    } catch (error) {
35
      dispatch(addNotification({ style: 'danger', msg: error.message }))
38
      dispatch(addNotification({ style: 'danger', msg: error.message }))