diff --git a/apps/builder/components/dashboard/FolderContent.tsx b/apps/builder/components/dashboard/FolderContent.tsx index a33baf26d..315446bdf 100644 --- a/apps/builder/components/dashboard/FolderContent.tsx +++ b/apps/builder/components/dashboard/FolderContent.tsx @@ -1,4 +1,4 @@ -import { DashboardFolder } from 'db' +import { DashboardFolder, WorkspaceRole } from 'db' import { Flex, Heading, @@ -34,7 +34,7 @@ const dragDistanceTolerance = 20 export const FolderContent = ({ folder }: Props) => { const { user } = useUser() - const { workspace } = useWorkspace() + const { workspace, currentRole } = useWorkspace() const [isCreatingFolder, setIsCreatingFolder] = useState(false) const { setDraggedTypebot, @@ -170,17 +170,21 @@ export const FolderContent = ({ folder }: Props) => { {folder && } - + {currentRole !== WorkspaceRole.GUEST && ( + + )} - + {currentRole !== WorkspaceRole.GUEST && ( + + )} {isFolderLoading && } {folders && folders.map((folder) => (