Skip to content

Commit 7019f43

Browse files
committed
adding currentDropInItemAtom back as removing it broke the drop on functionality
1 parent a55c795 commit 7019f43

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Components/DnDLayout/GridLayout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import ResizeHandleSVG from './resize-handle.svg';
88
import { widgetMappingAtom } from '../../state/widgetMappingAtom';
99
import { layoutVariantAtom } from '../../state/layoutAtom';
1010
import { templateAtom, templateIdAtom } from '../../state/templateAtom';
11+
import { currentDropInItemAtom } from '../../state/currentDropInItemAtom';
1112
import DebouncePromise from 'awesome-debounce-promise';
1213
import {
1314
LayoutTypes,
@@ -76,6 +77,7 @@ const GridLayout = ({ isLayoutLocked = false, layoutType = 'landingPage' }: { is
7677
const addNotification = useAddNotification();
7778
const setCurrentlyUsedWidgets = useSetAtom(currentlyUsedWidgetsAtom);
7879
const setDrawerExpanded = useSetAtom(drawerExpandedAtom);
80+
const currentDropInItem = useAtomValue(currentDropInItemAtom);
7981
const { analytics } = useChrome();
8082

8183
// Convert Scalprum mapping to PatternFly mapping
@@ -199,6 +201,7 @@ const GridLayout = ({ isLayoutLocked = false, layoutType = 'landingPage' }: { is
199201
showEmptyState={!isLoaded}
200202
onDrawerExpandChange={handleDrawerExpandChange}
201203
onActiveWidgetsChange={handleActiveWidgetsChange}
204+
droppingWidgetType={currentDropInItem}
202205
/>
203206
)}
204207
</div>

0 commit comments

Comments
 (0)