Fix first widget is now removed upon clicking Cancel
This commit is contained in:
@@ -26,7 +26,7 @@ export default function MyDashboard({layout, onLayoutChange, isEditable, isDelet
|
||||
};
|
||||
|
||||
// Show large 'Add Widget' button when dashboard is empty
|
||||
if ( !widgetArray.length ) {
|
||||
if ( !layout.length ) {
|
||||
return (
|
||||
<Flex
|
||||
align="center"
|
||||
|
||||
Reference in New Issue
Block a user