🚨 Fix build warnings

This commit is contained in:
Manuel Ruwe
2023-01-07 20:24:15 +01:00
parent 42f55da4da
commit dc13efa27d
4 changed files with 17 additions and 14 deletions

View File

@@ -104,12 +104,12 @@ export const useGridstack = (
currentItem.shape[shapeSize] = {
location: {
x: changedNode.x ?? currentItem.shape[shapeSize].location.x,
y: changedNode.y ?? currentItem.shape[shapeSize].location.y,
x: changedNode.x!,
y: changedNode.y!,
},
size: {
width: changedNode.w ?? currentItem.shape[shapeSize].size.width,
height: changedNode.h ?? currentItem.shape[shapeSize].size.height,
width: changedNode.w!,
height: changedNode.h!,
},
};
@@ -170,12 +170,12 @@ export const useGridstack = (
currentItem.shape[shapeSize] = {
location: {
x: addedNode.x ?? currentItem.shape[shapeSize].location.x,
y: addedNode.y ?? currentItem.shape[shapeSize].location.y,
x: addedNode.x!,
y: addedNode.y!,
},
size: {
width: addedNode.w ?? currentItem.shape[shapeSize].size.width,
height: addedNode.h ?? currentItem.shape[shapeSize].size.height,
width: addedNode.w!,
height: addedNode.h!,
},
};