|
|
@@ -123,10 +123,12 @@ export class PBUR implements InstrumentComponent {
|
|
|
this.instrument_work.proyecciones != undefined
|
|
|
) {
|
|
|
this.hasProjections = true;
|
|
|
- this.dataSource2.data = this.instrument_work.proyecciones;
|
|
|
+ this.dataSource2.data = this.instrument_work.proyecciones.slice(0, -1);
|
|
|
this.dataSource2.paginator = this.paginator;
|
|
|
this.dataSource2.sort = this.sort;
|
|
|
- this.consolidado_proyeccion = this.instrument_work.proyecciones.pop();
|
|
|
+ this.consolidado_proyeccion = this.instrument_work.proyecciones[
|
|
|
+ this.instrument_work.proyecciones.length - 1
|
|
|
+ ];
|
|
|
} else {
|
|
|
this.hasProjections = false;
|
|
|
}
|
|
|
@@ -313,7 +315,7 @@ export class PBUR implements InstrumentComponent {
|
|
|
this.proyecciones = ans["result"]["proyecciones"];
|
|
|
|
|
|
if (this.proyecciones != undefined && this.proyecciones.length > 0) {
|
|
|
- this.consolidado_proyeccion = this.proyecciones.pop();
|
|
|
+ this.consolidado_proyeccion = this.proyecciones.slice(0, -1);
|
|
|
this.proyecciones = ans["result"]["proyecciones"];
|
|
|
}
|
|
|
|