From d96dfa63c9424cacacb21685565df6cd2451b431 Mon Sep 17 00:00:00 2001 From: Dmitry Popov Date: Thu, 24 Oct 2024 21:18:03 +0200 Subject: [PATCH] chore: release version v1.12.6 --- .../Mapper/components/map/hooks/api/useMapAddSystems.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/assets/js/hooks/Mapper/components/map/hooks/api/useMapAddSystems.ts b/assets/js/hooks/Mapper/components/map/hooks/api/useMapAddSystems.ts index b0228851..8f6d6bce 100644 --- a/assets/js/hooks/Mapper/components/map/hooks/api/useMapAddSystems.ts +++ b/assets/js/hooks/Mapper/components/map/hooks/api/useMapAddSystems.ts @@ -1,17 +1,10 @@ import { Node, useReactFlow } from 'reactflow'; -import { useCallback, useRef } from 'react'; +import { useCallback } from 'react'; import { CommandAddSystems } from '@/hooks/Mapper/types/mapHandlers.ts'; import { convertSystem2Node } from '../../helpers'; -import { useMapRootState } from '@/hooks/Mapper/mapRootProvider'; export const useMapAddSystems = () => { const rf = useReactFlow(); - const { - data: { systems }, - } = useMapRootState(); - - const ref = useRef({ rf, systems }); - ref.current = { systems, rf }; return useCallback( (systems: CommandAddSystems) => {