From 697da952bfbb5c1f231b3fb0418b05cedb8edd7e Mon Sep 17 00:00:00 2001 From: Matheus Date: Thu, 16 May 2024 14:38:12 -0300 Subject: [PATCH] feat(33159): Corrige verificacao modal --- src/componentes/Globais/ArquivosDeCarga/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/componentes/Globais/ArquivosDeCarga/index.js b/src/componentes/Globais/ArquivosDeCarga/index.js index c5703d69d..4d4bc1d72 100644 --- a/src/componentes/Globais/ArquivosDeCarga/index.js +++ b/src/componentes/Globais/ArquivosDeCarga/index.js @@ -333,9 +333,9 @@ const ArquivosDeCarga = () => { 'status': 'PENDENTE', 'conteudo': values.conteudo, }; - if(verificaSeArquivoRequerPeriodo()) { + if(url_params.tipo_de_carga === 'REPASSE_PREVISTO') { payload.periodo = values.periodo; - }; + } await postCreateArquivoDeCarga(payload); console.log("Arquivo de carga criado com sucesso"); setShowModalForm(false);