This commit is contained in:
Bruno Windels 2019-06-02 15:46:44 +02:00
parent bdad0ad86b
commit a269f612b6

View File

@ -88,8 +88,8 @@ export default class TilesCollection extends BaseObservableList {
const newTile = this._tileCreator(entry);
if (newTile) {
prevTile && prevTile.updateNextSibling(newTile);
nextTile && nextTile.updatePreviousSibling(newTile);
prevTile && prevTile.updateNextSibling(newTile);
nextTile && nextTile.updatePreviousSibling(newTile);
this._tiles.splice(tileIdx, 0, newTile);
this.emitAdd(tileIdx, newTile);
}