From 5b29199e92dbbd94a047179b7b8f64b18241637a Mon Sep 17 00:00:00 2001 From: Theodore Li Date: Fri, 19 Jun 2026 19:29:31 -0700 Subject: [PATCH] fix(files): only show Share in context menu for files, not folders --- apps/sim/app/workspace/[workspaceId]/files/files.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/sim/app/workspace/[workspaceId]/files/files.tsx b/apps/sim/app/workspace/[workspaceId]/files/files.tsx index a56e008a85..aa9e47f025 100644 --- a/apps/sim/app/workspace/[workspaceId]/files/files.tsx +++ b/apps/sim/app/workspace/[workspaceId]/files/files.tsx @@ -1991,7 +1991,11 @@ export function Files() { onRename={handleContextMenuRename} onDelete={handleContextMenuDelete} onMove={handleContextMenuMove} - onShare={canEdit ? handleContextMenuShare : undefined} + onShare={ + canEdit && contextMenuItemRef.current?.kind === 'file' + ? handleContextMenuShare + : undefined + } moveOptions={contextMenuMoveOptions} canEdit={canEdit} selectedCount={selectedRowIds.size}