Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 7790 Rev 7796
Línea 64... Línea 64...
64
 
64
 
65
    useEffect(() => {
65
    useEffect(() => {
66
        clearErrors();
66
        clearErrors();
Línea 67... Línea 67...
67
    }, [isOpen]);
67
    }, [isOpen]);
-
 
68
 
68
 
69
    const onSubmit = (data, e) => {
Línea 69... Línea 70...
69
    const onSubmit = async (data, e) => {
70
 
70
        setLoading(true);
71
        setLoading(true);
71
 
72
 
Línea 84... Línea 85...
84
                        setError(key, { type: "required", message: value })
85
                        setError(key, { type: "required", message: value })
85
                    })
86
                    })
86
                } */
87
                } */
Línea 87... Línea 88...
87
 
88
 
-
 
89
                if (data.success) {
88
                if (data.success) {
90
                    setLoading(false);
89
                    e.target.reset();
91
                    e.target.reset();
90
                    setValue("description", "");
92
                    setValue("description", "");
91
                    setValue("file", "");
93
                    setValue("file", "");
Línea 92... Línea 94...
92
                    clearErrors();
94
                    clearErrors();
93
 
95
 
94
                    closeModal();
96
                    closeModal();
95
                    dispatch(addNotification({
97
                    dispatch(addNotification({
96
                        style: "success",
98
                        style: "success",
97
                        msg: "La publicación ha sido compartida",
99
                        msg: "La publicación ha sido compartida",
98
                    }))
100
                    }))
99
 
101
                    
100
                    if (currentPage && timelineUrl) {
102
                    if (currentPage && timelineUrl) {
101
                        dispatch(fetchFeeds(timelineUrl, currentPage))
103
                        dispatch(fetchFeeds(timelineUrl, currentPage))
102
                    }
104
                    }
103
 
105
                    
104
                    if (feedSharedId) {
106
                    if (feedSharedId) {
105
                        return dispatch(addFeed(newFeed, feedSharedId));
107
                        return dispatch(addFeed(newFeed, feedSharedId));
106
                    }
108
                    }
107
 
109
                    
Línea 108... Línea 110...
108
                    return dispatch(addFeed(newFeed));
110
                    return dispatch(addFeed(newFeed));
Línea 114... Línea 116...
114
                    msg: "Ha ocurrido un error",
116
                    msg: "Ha ocurrido un error",
115
                }))
117
                }))
Línea 116... Línea 118...
116
 
118
 
Línea 117... Línea -...
117
            })
-
 
118
 
119
            })
Línea 119... Línea 120...
119
        setLoading(false);
120
 
120
    };
121
    };
121
 
122