fast-follows: fix placeholder not appearing when no widgets in a tab (#15599)
closes - https://discord.com/channels/1130383047699738754/1435261256251605053 before: https://github.com/user-attachments/assets/fbbfd6b0-6c25-48c3-9367-efbf47efd34a after: https://github.com/user-attachments/assets/87105c4e-cf79-43c0-83bb-ebb4c32a64fc
This commit is contained in:
+9
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user