Skip to content

Commit

Permalink
Merge pull request #488 from flixlix/487-bug-beta-2-version-of-power-…
Browse files Browse the repository at this point in the history
…flow-card-not-rendered-on-android-50-tablet

fix: 🐛 structuredClone undefined in old browsers
  • Loading branch information
flixlix authored Apr 14, 2024
2 parents 2e2e2bc + 2cc62a3 commit 53a4d54
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 53a4d54

Please sign in to comment.