mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-06 00:49:42 -06:00
fix: update preview URL construction in survey dropdown menu (#6117)
This commit is contained in:
@@ -195,9 +195,8 @@ export const SurveyDropDownMenu = ({
|
||||
e.preventDefault();
|
||||
setIsDropDownOpen(false);
|
||||
const newId = await refreshSingleUseId();
|
||||
const previewUrl = newId
|
||||
? `/s/${survey.id}?suId=${newId}&preview=true`
|
||||
: `/s/${survey.id}?preview=true`;
|
||||
const previewUrl =
|
||||
surveyLink + (newId ? `?suId=${newId}&preview=true` : "?preview=true");
|
||||
window.open(previewUrl, "_blank");
|
||||
}}>
|
||||
<EyeIcon className="mr-2 h-4 w-4" />
|
||||
|
||||
Reference in New Issue
Block a user