Skip to content

Commit

Permalink
Fixed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms committed Jun 27, 2024
1 parent d7b5437 commit e20ee1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions frontend/src/modules/Intersection/settings/atoms/baseAtoms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ export const userSelectedFieldIdentifierAtom = atom<string | null>(null);
export const userSelectedEnsembleIdentAtom = atom<EnsembleIdent | null>(null);
export const userSelectedWellboreUuidAtom = atom<string | null>(null);
export const userSelectedCustomIntersectionPolylineIdAtom = atom<string | null>(null);

export const layerManagerBaseAtom = atom<LayerManager>(new LayerManager());
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { EnsembleIdent } from "@framework/EnsembleIdent";
import { EnsembleSet } from "@framework/EnsembleSet";
import { EnsembleRealizationFilterFunctionAtom, EnsembleSetAtom } from "@framework/GlobalAtoms";
import { IntersectionPolylinesAtom } from "@framework/userCreatedItems/IntersectionPolylines";
import { LayerManager } from "@modules/Intersection/utils/layers/LayerManager";

import { atom } from "jotai";
import { queryClientAtom } from "jotai-tanstack-query";

import {
layerManagerBaseAtom,
userSelectedCustomIntersectionPolylineIdAtom,
userSelectedEnsembleIdentAtom,
userSelectedFieldIdentifierAtom,
Expand Down Expand Up @@ -121,8 +121,9 @@ export const selectedWellboreAtom = atom((get) => {
});

export const layerManagerAtom = atom((get) => {
console.debug("Creating LayerManager");
const layerManager = new LayerManager();
const queryClient = get(queryClientAtom);
const layerManager = get(layerManagerBaseAtom);
layerManager.setQueryClient(queryClient);

return layerManager;
Expand Down

0 comments on commit e20ee1e

Please sign in to comment.