Cannot re-add deleted record

by ilaria_nunziante

HTML

<link rel="stylesheet" href="https://cdn.flexmonster.com/2.3/demo.css">
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<button id="btn" onclick="deleteRecord()">Delete</button>
<button id="btn" onclick="addRecord()">Add</button>
<div id="pivot-container"></div>

JavaScript

var pivot = new Flexmonster({
  container: "pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  width: "100%",
  height: 430,
  report: {
    "dataSource": {
      "type": "json",
      "data": [{
        "Product": "Product 0",
        "Orders": 52,
        "RowId": "0",
      },{
        "Product": "Product 1",
        "Orders": 52,
        "RowId": "1",
      }],
      "mapping": {
        "Product": {
          "type": "string"
        },
        "Orders": {
          "type": "number"
        },
        "RowId": {
          "type": "id"
        }
      }
    },
    "slice": {
      "rows": [{
        "uniqueName": "Product",
      }],
      "columns": [{
        "uniqueName": "[Measures]"
      }],
      "measures": [{
          "uniqueName": "Sales"
        },
        {
          "uniqueName": "Orders"
        }
      ],
      "expands": {
        "expandAll": true
      },
      "drills": {
        "drillAll": true
      }
    }
  }
});

function update(data) {
  flexmonster.updateData({
    data: data
  }, {
    partial: true
  });
}


function deleteRecord() {
  this.update([{
        "Product": "Product 0",
        "RowId": "0",
        "DeleteRow": true
      }]);
}


function addRecord() {
  this.update([{
        "Product": "Product 0",
        "RowId": "0",
        "Orders": 500
      }]);
}