mitre-form-component 2.2.3 → 2.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1818,12 +1818,18 @@ var MitreFormComponent = import_react8.default.forwardRef(({
1818
1818
  }, REDIRECT_DELAY_MS);
1819
1819
  }
1820
1820
  } else if (channel === "chat") {
1821
+ const { channel: _channelInBody, ...requestBodyNoChannel } = requestBody;
1822
+ const effectiveIdEmpreendimento = idEmpreendimento ?? selectedProduct.id.toString();
1823
+ const effectiveIdProdutoTerceiro = idProdutoTerceiro ?? "0";
1821
1824
  const virtualObj = {
1822
- ...requestBody,
1825
+ ...requestBodyNoChannel,
1826
+ canal: channel,
1823
1827
  externalOriginId: leadId,
1828
+ idEmpreendimento: effectiveIdEmpreendimento,
1829
+ id_produto: effectiveIdEmpreendimento,
1830
+ idProdutoTerceiro: effectiveIdProdutoTerceiro,
1831
+ id_produto_terceiro: effectiveIdProdutoTerceiro,
1824
1832
  ...paginaAtual ? { pagina: paginaAtual } : {},
1825
- ...idProdutoTerceiro !== void 0 ? { idProdutoTerceiro } : {},
1826
- ...idEmpreendimento !== void 0 ? { idEmpreendimento } : {},
1827
1833
  ...naoCriarEventoEfetivo ? { naoCriarEvento: true } : {}
1828
1834
  };
1829
1835
  setActionModal({