We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fddc49 commit c165201Copy full SHA for c165201
src/shared/static.js
@@ -378,7 +378,9 @@ const parseIntWithFallback = (input, fallback) => {
378
const indexByKey = (dataObjects, key) =>
379
dataObjects.reduce((result, dataObject) => {
380
const identifier = dataObject[key];
381
- result[identifier] = dataObject;
+ if (!Object.prototype.hasOwnProperty.call(result, identifier)) {
382
+ result[identifier] = dataObject;
383
+ }
384
return result;
385
}, {});
386
0 commit comments