From 01f24ef412d82fac4a692dc7e9efb4d88058a19e Mon Sep 17 00:00:00 2001 From: Robson Tenorio Henriques Date: Tue, 15 Oct 2024 12:17:19 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20para=20exibir=20apenas=20a?= =?UTF-8?q?=20wwebjs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/Api/index.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/Api/index.js b/frontend/src/pages/Api/index.js index daf763a1..8d23fdf7 100644 --- a/frontend/src/pages/Api/index.js +++ b/frontend/src/pages/Api/index.js @@ -277,11 +277,14 @@ const Api = () => { onChange={(e) => setWhatsappId(e.target.value)} required > - {whatsapps.map((whatsapp) => ( - - ))} + {whatsapps + .filter(whatsapp => whatsapp.type === null) + .map((whatsapp) => ( + + )) + }