Merge branch 'formbricks:main' into main

This commit is contained in:
RajuGangitla
2024-09-11 11:07:13 +05:30
committed by GitHub

View File

@@ -224,6 +224,12 @@ export const SurveyMenuBar = ({
}
});
if (localSurvey.type !== "link" && !localSurvey.triggers?.length) {
toast.error("Please set a survey trigger");
setIsSurveySaving(false);
return false;
}
const segment = await handleSegmentUpdate();
const updatedSurveyResponse = await updateSurveyAction({ ...localSurvey, segment });