Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3625 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3625 Rev 3628
Línea 22... Línea 22...
22
    onError: (error) => {
22
    onError: (error) => {
23
      showError(error.message);
23
      showError(error.message);
24
    }
24
    }
25
  });
25
  });
Línea 26... Línea -...
26
 
-
 
27
  const handleDeleteConversation = async (url) => {
-
 
28
    try {
26
 
29
      const message = await deleteConversationService(url);
-
 
30
      showSuccess(message);
-
 
31
      setConversations((prev) => prev.filter((c) => c.uuid !== url));
27
  const { execute: executeDeleteConversation } = useApi(deleteConversationService, {
32
    } catch (error) {
28
    onError: (error) => {
33
      showError(error.message);
29
      showError(error.message);
-
 
30
    }
-
 
31
  });
-
 
32
 
-
 
33
  const handleDeleteConversation = async (url) => {
-
 
34
    executeDeleteConversation(url).then((data) => {
-
 
35
      showSuccess(data);
-
 
36
      setConversations((prev) => prev.filter((c) => c.uuid !== url));
34
    }
37
    });
Línea 35... Línea 38...
35
  };
38
  };
36
 
39
 
37
  const deleteConversation = (url) => {
40
  const deleteConversation = (url) => {