Fix first widget is now removed upon clicking Cancel

This commit is contained in:
Daniel S. Hansen
2025-08-11 14:17:21 -07:00
parent 03942a422e
commit c1787d7871
3 changed files with 52 additions and 19 deletions
@@ -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"