Replace _id by id

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-05 17:58:05 +04:00
parent 3a21a6abee
commit 51879ba5aa
11 changed files with 21 additions and 21 deletions
+3 -3
View File
@@ -18,7 +18,7 @@ const Alert = forwardRef(function Alert(props, ref) {
})
function EkriKomante({session, teks, meteEsKomanteOuve}) {
const {jwt, user} = session
const {_id} = teks
const {id} = teks
const [komante, meteKomante] = useState({kontni: ''})
const [ere, meteEre] = useState('')
const [sikse, meteSikse] = useState('')
@@ -43,8 +43,8 @@ function EkriKomante({session, teks, meteEsKomanteOuve}) {
axios.post(`${API_URL}/komante`, {
kontni,
teks: _id,
user: user._id
teks: id,
user: user.id
}, {
headers
})