Skip to content

Commit

Permalink
Add more detailed comment on how <0.4 change over time data is handled
Browse files Browse the repository at this point in the history
Resolves comment #175 (comment)
  • Loading branch information
codemacabre committed Dec 16, 2024
1 parent b348840 commit 4706db1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/bods.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export const filteredData = (statements, selectedDate, version) => {
const nodeTypes = ['ownershipOrControlStatement', 'entityStatement', 'personStatement'];
const replacedStatements = new Set();

// filter statements by <0.4 changes over time, and only return the latest state of data
filteredStatements.forEach((statement) => {
if (nodeTypes.includes(statement.statementType)) {
(statement.replacesStatements || []).forEach((id) => replacedStatements.add(id));
Expand Down

0 comments on commit 4706db1

Please sign in to comment.