mirror of
https://github.com/ajnart/homarr.git
synced 2026-05-06 10:07:14 +02:00
🐛 Issue with moving items arround with change-position-modal
This commit is contained in:
@@ -13,12 +13,10 @@ export const useResizeGridItem = () => {
|
||||
const gridstackRef = useGridstackRef();
|
||||
|
||||
return ({ height, width, ...options }: ResizeGridItemProps) => {
|
||||
gridstackRef.current?.batchUpdate();
|
||||
gridstackRef.current?.update(itemRef.current!, {
|
||||
gridstackRef?.current?.update(itemRef.current!, {
|
||||
...options,
|
||||
h: height,
|
||||
w: width,
|
||||
});
|
||||
gridstackRef.current?.batchUpdate(false);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user