Fix that weird anonymous zero in the ui.

This commit is contained in:
muzam1l
2022-07-21 14:14:40 +05:30
parent 6a3ff3e1d7
commit b9da659f83

View File

@@ -62,7 +62,7 @@ export const ContextMenu: FC<IContextMenu> = ({
) : (
<ContextMenuTrigger>{children}</ContextMenuTrigger>
)}
{options && options.length && (
{options && !!options.length && (
<ContextMenuContent sideOffset={isNested ? 2 : 5}>
{options.map(({ key, ...option }) => {
if (option.type === "text") {