Skip to content

Commit

Permalink
fix(IN-414): Header de la tabla al volver a la pantalla (#2638)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarianoCampetella authored May 2, 2022
1 parent 31ac620 commit 1c5148d
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { MapaCamaListadoColumns } from '../../interfaces/mapa-camas.internface';
import { PermisosMapaCamasService } from '../../services/permisos-mapa-camas.service';
import { ElementosRUPService } from 'src/app/modules/rup/services/elementosRUP.service';
import { WebSocketService } from 'src/app/services/websocket.service';

@Component({
selector: 'app-mapa-camas-capa',
templateUrl: 'mapa-camas-capa.component.html',
Expand Down Expand Up @@ -84,7 +83,6 @@ export class MapaCamasCapaComponent implements OnInit, OnDestroy {

) { }


ngOnDestroy() {
this.ws.disconnect();
}
Expand Down Expand Up @@ -140,20 +138,12 @@ export class MapaCamasCapaComponent implements OnInit, OnDestroy {
})
);


this.mapaCamasService.setFecha(new Date());
this.mapaCamasService.setOrganizacion(this.auth.organizacion.id);
this.mapaCamasService.select(null);

this.organizacion = this.auth.organizacion.id;

this.mapaCamasService.maquinaDeEstado$.pipe(take(1)).subscribe((estado) => {
const columns = estado.columns;
if (columns) {
this.columns = columns;
this.toggleColumns();
}
});
this.columns = this.mapaCamasService.columnsMapa.getValue();

this.puedeVerHistorial$ = this.mapaCamasService.maquinaDeEstado$.pipe(
map(estado => estado.historialMedico)
Expand Down

0 comments on commit 1c5148d

Please sign in to comment.