From dabc93e1b6365616c7457d46cb9c8a7f5a1ca421 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 14 Oct 2022 19:39:38 +0100 Subject: [PATCH] Fix unused plugins not being able to be dragged into the preview --- packages/client/src/stores/dnd.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,