Ionic 2 ion-item-sliding error when updating object

down vote
i’m trying to use the ion-item-sliding of a ion-list with this code :

<ion-item-sliding *ngFor="let device of devices" class="item-sliding-joueur-balise">
    <ion-item class="item-joueur-balise" *ngIf="device.player">
    <ion-avatar item-left><img left="" src={{device.player.urlImage}}/></ion-avatar>
    <ion-label right>Balise {{}}</ion-label>
<ion-item-options side="right">
    <button ion-button class="button-edit-balise" (click)="handleEditBalise(device)">
    <ion-icon class="icon-action" name="md-create"></ion-icon>
    <label class="label-action">Balise</label>
    <button ion-button color="danger" style="width:80px" (click)="deleteDevice(device)">
    <ion-icon class="icon-action-size" name="trash"></ion-icon>
    <label class="label-action">Supprimer</label>

But when I click on the delete button that executes the deleteDevice(device) , I get the following error :

Uncaught TypeError: Cannot read property 'setElementStyle' of undefined
    at ItemSliding._setOpenAmount (item-sliding.js:396)
    at ItemSliding.close (item-sliding.js:477)
    at ItemSlidingGesture.closeOpened (item-sliding-gesture.js:104)
    at ItemSlidingGesture.canStart (item-sliding-gesture.js:50)
    at ItemSlidingGesture.PanGesture.pointerDown (drag-gesture.js:79)
    at PointerEvents.handleTouchStart (pointer-events.js:43)

The deleteDevice function is :

 deleteDevice(device: Device): void {
    device.player= null;

I seems that when I try to modify the device element of the list i get this error but i don’t know how to solve it and why is it happening.

Any ideas please ? (i don’t want to use the splice function on devices but juste set the player of the device to null)

Thank you.