diff --git a/apps/nextjs/src/components/board/items/item-content.tsx b/apps/nextjs/src/components/board/items/item-content.tsx index c82e94e8e..c78dc0baa 100644 --- a/apps/nextjs/src/components/board/items/item-content.tsx +++ b/apps/nextjs/src/components/board/items/item-content.tsx @@ -59,32 +59,32 @@ export const BoardItemContent = ({ item }: BoardItemContentProps) => { ); return ( - <> - + +
{cardElement} - - {item.advancedOptions.title?.trim() && ( - - {item.advancedOptions.title} - - )} - + {item.advancedOptions.title?.trim() && ( + + {item.advancedOptions.title} + + )} +
+
); }; diff --git a/apps/nextjs/src/components/board/items/widget-context-menu.tsx b/apps/nextjs/src/components/board/items/widget-context-menu.tsx index 4a3b87cf1..a4602ed40 100644 --- a/apps/nextjs/src/components/board/items/widget-context-menu.tsx +++ b/apps/nextjs/src/components/board/items/widget-context-menu.tsx @@ -153,6 +153,7 @@ export const WidgetContextMenu = ({ item, widgetStateRef, children }: WidgetCont label: tItem("action.edit"), icon: IconPencil, onClick: openEditModal, + disabled: isPending, }); actions.push({ key: "moveResize", @@ -191,6 +192,7 @@ export const WidgetContextMenu = ({ item, widgetStateRef, children }: WidgetCont return actions.filter((a) => !a.hidden); }, [ isEditMode, + isPending, autoToggleActions, widgetContextActions, openEditModal, @@ -202,8 +204,6 @@ export const WidgetContextMenu = ({ item, widgetStateRef, children }: WidgetCont duplicateItem, ]); - if (isPending) return <>{children}; - return ( {children}