fix: show link options only on published surveys

This commit is contained in:
moritzrengert
2023-05-27 00:58:37 +02:00
parent 6ea6bddc5e
commit 37f26fa7c6
@@ -222,7 +222,7 @@ export default function SurveysList({ environmentId }) {
Delete
</button>
</DropdownMenuItem>
{survey.type === "link" && (
{survey.type === "link" && survey.status !== "draft" && (
<>
<DropdownMenuItem>
<a