🐛 Fix wrong position of wrapper when migrating from old schema

This commit is contained in:
Manuel Ruwe
2023-01-11 21:28:24 +01:00
parent e41f63345c
commit ff0f96b4b6
2 changed files with 15 additions and 2 deletions

View File

@@ -14,7 +14,11 @@ export const DashboardWrapper = ({ wrapper }: DashboardWrapperProps) => {
return (
<div
className={apps.length > 0 || isEditMode ? defaultClasses : `${defaultClasses} gridstack-empty-wrapper`}
className={
apps.length > 0 || widgets.length > 0 || isEditMode
? defaultClasses
: `${defaultClasses} gridstack-empty-wrapper`
}
style={{ transitionDuration: '0s' }}
data-wrapper={wrapper.id}
ref={refs.wrapper}