diff --git a/frontend/src/modules/2DViewer/settings/atoms/derivedAtoms.ts b/frontend/src/modules/2DViewer/settings/atoms/derivedAtoms.ts index 7d4115816..5fc4447f4 100644 --- a/frontend/src/modules/2DViewer/settings/atoms/derivedAtoms.ts +++ b/frontend/src/modules/2DViewer/settings/atoms/derivedAtoms.ts @@ -1,4 +1,3 @@ -import { EnsembleSet } from "@framework/EnsembleSet"; import { EnsembleSetAtom } from "@framework/GlobalAtoms"; import { atom } from "jotai"; @@ -18,14 +17,3 @@ export const selectedFieldIdentifierAtom = atom((get) => { return userSelectedField; }); - -export const filteredEnsembleSetAtom = atom((get) => { - const ensembleSet = get(EnsembleSetAtom); - const fieldIdentifier = get(userSelectedFieldIdentifierAtom); - - if (fieldIdentifier === null) { - return ensembleSet; - } - - return new EnsembleSet(ensembleSet.getEnsembleArr().filter((el) => el.getFieldIdentifier() === fieldIdentifier)); -});