We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d6b0a3 commit 6358975Copy full SHA for 6358975
src/core/viewbasedjsonmodel.ts
@@ -276,7 +276,9 @@ export class ViewBasedJSONModel extends MutableDataModel {
276
277
const indices: number[] = view.dataset.map((val, i) => {
278
const lookupVal = JSON.stringify(primaryKey.map(key => val[key]));
279
- return this._primaryKeyMap.get(lookupVal) || i;
+ const retrievedVal = this._primaryKeyMap.get(lookupVal);
280
+
281
+ return typeof retrievedVal === "undefined" ? i : retrievedVal;
282
});
283
284
this.dataSync.emit({
0 commit comments