mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-15 03:52:13 +01:00
🐛 Issue with moving categories up / down
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { GridStack } from 'fily-publish-gridstack';
|
||||
import { PropsWithChildren, createContext, createRef, useContext } from 'react';
|
||||
import { PropsWithChildren, createContext, useContext } from 'react';
|
||||
|
||||
type GridstackContextProps = {
|
||||
ref: React.MutableRefObject<GridStack | undefined> | null;
|
||||
|
||||
@@ -13,6 +13,7 @@ export const useResizeGridItem = () => {
|
||||
const gridstackRef = useGridstackRef();
|
||||
|
||||
return ({ height, width, ...options }: ResizeGridItemProps) => {
|
||||
if (!itemRef?.current) return;
|
||||
gridstackRef?.current?.update(itemRef.current!, {
|
||||
...options,
|
||||
h: height,
|
||||
|
||||
Reference in New Issue
Block a user