Skip to content

Commit

Permalink
Correção para exibir apenas a wwebjs
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Oct 15, 2024
1 parent 11f1b8b commit 01f24ef
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions frontend/src/pages/Api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,14 @@ const Api = () => {
onChange={(e) => setWhatsappId(e.target.value)}
required
>
{whatsapps.map((whatsapp) => (
<option key={whatsapp.id} value={whatsapp.id}>
{whatsapp.name}
</option>
))}
{whatsapps
.filter(whatsapp => whatsapp.type === null)
.map((whatsapp) => (
<option key={whatsapp.id} value={whatsapp.id}>
{whatsapp.name}
</option>
))
}
</TextField>
</Grid>
</Grid>
Expand Down

0 comments on commit 01f24ef

Please sign in to comment.