Skip to content

Commit

Permalink
fix: não salva mais "null" em proposicao.emendarTextoSubstitutivo
Browse files Browse the repository at this point in the history
refs #914
  • Loading branch information
fragomeni committed Jun 28, 2024
1 parent 2f15c73 commit 77a43b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/lexml-emenda.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ export class LexmlEmendaComponent extends connect(rootStore)(LitElement) {
this.urn = buildFakeUrn(params.proposicao.sigla, params.proposicao.numero, params.proposicao.ano);
this.ementa = params.proposicao.ementa; // Preferência para a ementa informada
}
this.emendarTextoSubstitutivo = params.emendarTextoSubstitutivo;
this.emendarTextoSubstitutivo = params.emendarTextoSubstitutivo || false;

// Se não forem informados, utilizar da Emenda
if (params.emenda) {
Expand All @@ -472,8 +472,8 @@ export class LexmlEmendaComponent extends connect(rootStore)(LitElement) {
}
if (!this.ementa) {
this.ementa = params.emenda.proposicao.ementa;
this.emendarTextoSubstitutivo = params.emenda.proposicao.emendarTextoSubstitutivo;
}
this.emendarTextoSubstitutivo = params.emenda.proposicao.emendarTextoSubstitutivo || false;
}

// Por último do ProjetoNorma
Expand Down

0 comments on commit 77a43b9

Please sign in to comment.