Skip to content

Commit

Permalink
Merge branch 'v0.2.0' into fix-watt-threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
flixlix authored Apr 14, 2024
2 parents 9f53981 + 53a4d54 commit 315342c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/computeIndividualPosition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { PowerFlowCardPlusConfig } from "../power-flow-card-plus-config";
import { IndividualObject } from "../states/raw/individual/getIndividualObject";

const filterUnusedIndividualObjs = (individualObjs: IndividualObject[]): IndividualObject[] => {
const cloneIndividualObjs = structuredClone(individualObjs);
const cloneIndividualObjs = JSON.parse(JSON.stringify(individualObjs)) as IndividualObject[];
const individualObjsWithHas = cloneIndividualObjs.filter((i) => i?.has);
return individualObjsWithHas;
};
Expand Down

0 comments on commit 315342c

Please sign in to comment.