diff --git a/packages/client/src/stores/dnd.js b/packages/client/src/stores/dnd.js index cebdb7c6ae..a1f85af92c 100644 --- a/packages/client/src/stores/dnd.js +++ b/packages/client/src/stores/dnd.js @@ -21,13 +21,13 @@ const createDndStore = () => { } const startDraggingNewComponent = ({ component, definition }) => { - if (!component || !definition) { + if (!component) { return } // Get size of new component so we can show a properly sized placeholder - const width = definition.size?.width || 128 - const height = definition.size?.height || 64 + const width = definition?.size?.width || 128 + const height = definition?.size?.height || 64 store.set({ ...initialState,