Replace _id by id
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user