Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1887 Rev 2194
Línea 70... Línea 70...
70
        dispatch(addNotification({ style: 'success', msg: data }))
70
        dispatch(addNotification({ style: 'success', msg: data }))
71
        refetch()
71
        refetch()
72
        closeModal()
72
        closeModal()
73
      })
73
      })
74
      .catch((error) => {
74
      .catch((error) => {
75
        dispatch(
-
 
76
          addNotification({
-
 
77
            style: 'danger',
-
 
78
            msg: 'Ha ocurrido un error, por favor intente más tarde.'
75
        dispatch(addNotification({ style: 'danger', msg: error.message }))
79
          })
-
 
80
        )
-
 
81
        throw new Error(error)
-
 
82
      })
76
      })
83
  }
77
  }
Línea 84... Línea 78...
84
 
78
 
85
  const addQuestion = () => {
79
  const addQuestion = () => {