Unverified Commit 70783075 authored by Larissa Martins's avatar Larissa Martins Committed by GitHub
Browse files

Merge pull request #39 from 2020-1-RDM/editartitulomentoria

Não pode editar o titulo da mentoria
parents cbbac795 39fdf26c
......@@ -99,7 +99,7 @@ function CadastroMentoria() {
enqueue('Selecione o tipo de mentoria');
} else if (oldMentoria) {
if (
typeof image === 'string' //!!
typeof image === 'string' //! !
) data.delete('image');
const headers = { headers: { param: { id: oldMentoria.id }, Authorization: `Bearer ${token}` } };
atualizarMentoria(headers, data).then((res) => {
......@@ -244,6 +244,7 @@ function CadastroMentoria() {
descricao="Título"
valor={title}
onChange={(e) => setTitle(e.target.value)}
disabled={!!oldMentoria}
/>
<RedeTextArea
descricao="Descrição"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment