Skip to content

Commit

Permalink
fix: Corrige bug ao filtrar ação permitida undefined. (PL 786/2021)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaofreitas committed Dec 10, 2024
1 parent a351911 commit 36e881e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/model/lexml/situacao/dispositivoModificado.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export class DispositivoModificado implements TipoSituacao {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
getAcoesPermitidas(dispositivo: Dispositivo, acoes: any[]): any[] {
const acoesFiltradas = acoes
.filter((a: any) => !!a)
.filter((a: ElementoAction) => !(a instanceof AgruparElemento))
.filter((a: ElementoAction) => !(a instanceof RemoverElemento))
.filter((a: ElementoAction) => !(a instanceof RenumerarElemento))
Expand Down

0 comments on commit 36e881e

Please sign in to comment.