Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 7101 Rev 7201
Línea 69... Línea 69...
69
      })
69
      })
70
      .then((response) => {
70
      .then((response) => {
71
        const { data, success } = response.data
71
        const { data, success } = response.data
72
        if (!success) {
72
        if (!success) {
73
          const errorMessage =
73
          const errorMessage =
74
            typeof data === 'string' ? data : labels.error_there_was_an_error
74
            typeof data === 'string'
-
 
75
              ? data
-
 
76
              : 'Error interno. Por favor, inténtelo de nuevo más tarde.'
Línea 75... Línea 77...
75
 
77
 
76
          dispatch(addNotification({ style: 'danger', msg: errorMessage }))
78
          dispatch(addNotification({ style: 'danger', msg: errorMessage }))
77
          return
79
          return
Línea 81... Línea 83...
81
      })
83
      })
82
      .catch((err) => {
84
      .catch((err) => {
83
        dispatch(
85
        dispatch(
84
          addNotification({
86
          addNotification({
85
            style: 'danger',
87
            style: 'danger',
86
            msg: labels.error_there_was_an_error,
88
            msg: 'Error interno. Por favor, inténtelo de nuevo más tarde.',
87
          })
89
          })
88
        )
90
        )
89
        throw new Error(err)
91
        throw new Error(err)
90
      })
92
      })
91
  }, [uuid])
93
  }, [uuid])
Línea 98... Línea 100...
98
      .then((response) => {
100
      .then((response) => {
99
        const { data, success } = response.data
101
        const { data, success } = response.data
Línea 100... Línea 102...
100
 
102
 
101
        if (!success) {
103
        if (!success) {
102
          const errorMessage =
104
          const errorMessage =
-
 
105
            typeof data === 'string'
-
 
106
              ? data
Línea 103... Línea 107...
103
            typeof data === 'string' ? data : labels.error_there_was_an_error
107
              : 'Error interno. Por favor, inténtelo de nuevo más tarde.'
104
 
108
 
105
          dispatch(addNotification({ style: 'danger', msg: errorMessage }))
109
          dispatch(addNotification({ style: 'danger', msg: errorMessage }))
Línea 110... Línea 114...
110
      })
114
      })
111
      .catch((err) => {
115
      .catch((err) => {
112
        dispatch(
116
        dispatch(
113
          addNotification({
117
          addNotification({
114
            style: 'danger',
118
            style: 'danger',
115
            msg: labels.error_there_was_an_error,
119
            msg: 'Error interno. Por favor, inténtelo de nuevo más tarde.',
116
          })
120
          })
117
        )
121
        )
118
        throw new Error(err)
122
        throw new Error(err)
119
      })
123
      })
120
  }, [knowledge])
124
  }, [knowledge])