nitin
2025-11-04 19:35:02 +05:30
committed by GitHub
parent e3076328dd
commit 186dbb8aca
3 changed files with 12 additions and 4 deletions
@@ -10,6 +10,15 @@ export const prepareGridLayoutItemsWithPlaceholders = (
const hasWidgets = isDefined(widgets) && widgets.length > 0;
if (!hasWidgets) {
if (shouldIncludePendingPlaceholder) {
return [
{
id: PENDING_WIDGET_PLACEHOLDER_LAYOUT_KEY,
type: 'placeholder' as const,
},
];
}
return [
{
id: 'empty-placeholder',