Skip to content

Commit

Permalink
Ajuste no valor indefinido sendo passado para o componente TextField
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Oct 23, 2024
1 parent 6bd6c2e commit 795bce1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/src/pages/Api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ const Api = () => {
const [number, setNumber] = useState("");
const [body, setBody] = useState("");
const [media, setMedia] = useState(null);
const [userId, setUserId] = useState();
const [queueId, setQueueId] = useState();
const [whatsappId, setWhatsappId] = useState();
const [userId, setUserId] = useState("");
const [queueId, setQueueId] = useState("");
const [whatsappId, setWhatsappId] = useState("");
const [settings, setSettings] = useState([]);
const [users, setUsers] = useState([]);
const [queues, setQueues] = useState([]);
Expand Down Expand Up @@ -237,7 +237,7 @@ const Api = () => {
label="User ID"
variant="outlined"
fullWidth
value={userId}
value={userId || ""}
onChange={(e) => setUserId(e.target.value)}
required
>
Expand All @@ -255,7 +255,7 @@ const Api = () => {
label="Setor ID"
variant="outlined"
fullWidth
value={queueId}
value={queueId || ""}
onChange={(e) => setQueueId(e.target.value)}
required
>
Expand All @@ -273,7 +273,7 @@ const Api = () => {
label="WhatsApp ID"
variant="outlined"
fullWidth
value={whatsappId}
value={whatsappId || ""}
onChange={(e) => setWhatsappId(e.target.value)}
required
>
Expand Down

0 comments on commit 795bce1

Please sign in to comment.