Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms committed Dec 18, 2024
1 parent bd137c6 commit 9ab1525
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import { MenuButton } from "@lib/components/MenuButton";
import { MenuHeading } from "@lib/components/MenuHeading";
import { MenuItem } from "@lib/components/MenuItem";
import { LayersActionGroup } from "@modules/2DViewer/layers/LayersActions";
import { GroupDelegate } from "@modules/2DViewer/layers/delegates/GroupDelegate";
import { GroupDelegate, GroupDelegateTopic } from "@modules/2DViewer/layers/delegates/GroupDelegate";
import { usePublishSubscribeTopicValue } from "@modules/2DViewer/layers/delegates/PublishSubscribeDelegate";
import { ColorScale } from "@modules/2DViewer/layers/framework/ColorScale/ColorScale";
import { DeltaSurface } from "@modules/2DViewer/layers/framework/DeltaSurface/DeltaSurface";
import { LayerManager } from "@modules/2DViewer/layers/framework/LayerManager/LayerManager";
Expand Down Expand Up @@ -53,10 +54,10 @@ export type LayerManagerComponentWrapperProps = {

export function LayerManagerComponentWrapper(props: LayerManagerComponentWrapperProps): React.ReactNode {
const colorSet = props.workbenchSettings.useColorSet();

const [preferredViewLayout, setPreferredViewLayout] = useAtom(preferredViewLayoutAtom);

const groupDelegate = props.layerManager.getGroupDelegate();
usePublishSubscribeTopicValue(groupDelegate, GroupDelegateTopic.CHILDREN);

function handleLayerAction(identifier: string, groupDelegate: GroupDelegate) {
const numSharedSettings = groupDelegate.findChildren((item) => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/modules/2DViewer/settings/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { useAtom, useAtomValue, useSetAtom } from "jotai";

import { layerManagerAtom, preferredViewLayoutAtom, userSelectedFieldIdentifierAtom } from "./atoms/baseAtoms";
import { selectedFieldIdentifierAtom } from "./atoms/derivedAtoms";
import { LayerManagerComponentWrapper } from "./components/layerManagerComponent";
import { LayerManagerComponentWrapper } from "./components/layerManagerWrapper";

import { GroupDelegateTopic } from "../layers/delegates/GroupDelegate";
import { LayerManager, LayerManagerTopic } from "../layers/framework/LayerManager/LayerManager";
Expand Down

0 comments on commit 9ab1525

Please sign in to comment.