Actualizar frontend/src/pages/Plantillas.jsx
This commit is contained in:
@@ -277,7 +277,7 @@ export default function Plantillas({ ocultarTitulo = false }) {
|
||||
const nums = filas.map((f) => f.telefono).filter(Boolean);
|
||||
const r = await api.plantillaEnviar({
|
||||
nombre: sel.nombre, categoria: sel.categoria || "MARKETING",
|
||||
idioma: "es_PE", texto: sel.texto || "", telefonos: nums,
|
||||
idioma: sel.idioma || "es_PE", texto: sel.texto || "", telefonos: nums,
|
||||
});
|
||||
setResEnvioBase(r);
|
||||
} catch (e) {
|
||||
@@ -332,7 +332,7 @@ export default function Plantillas({ ocultarTitulo = false }) {
|
||||
try {
|
||||
const r = await api.plantillaEnviar({
|
||||
nombre: sel.nombre, categoria: sel.categoria || "MARKETING",
|
||||
idioma: "es_PE", texto: sel.texto || "", telefonos,
|
||||
idioma: sel.idioma || "es_PE", texto: sel.texto || "", telefonos,
|
||||
});
|
||||
setResultado(r);
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user