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}