Skip to content

Commit

Permalink
Merge branch 'fix-watt-threshold' of https://github.com/flixlix/power…
Browse files Browse the repository at this point in the history
…-flow-card-plus into fix-watt-threshold
  • Loading branch information
flixlix committed Apr 14, 2024
1 parent 3e5f826 commit f69786e
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 f69786e

Please sign in to comment.