mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-05 13:20:03 -06:00
Merge branch 'main' into randomize-row-order-matrix-questions
This commit is contained in:
@@ -2009,7 +2009,8 @@ const validateActions = (
|
||||
return undefined;
|
||||
});
|
||||
|
||||
return actionIssues.filter((issue) => issue !== undefined);
|
||||
const filteredActionIssues = actionIssues.filter((issue) => issue !== undefined);
|
||||
return filteredActionIssues;
|
||||
};
|
||||
|
||||
const validateLogic = (survey: TSurvey, questionIndex: number, logic: TSurveyLogic[]): z.ZodIssue[] => {
|
||||
|
||||
@@ -233,7 +233,7 @@ export const findQuestionsWithCyclicLogic = (questions: TSurveyQuestion[]): stri
|
||||
|
||||
// Helper function to find all "jumpToQuestion" actions in the logic
|
||||
const findJumpToQuestionActions = (actions: TSurveyLogicAction[]): TActionJumpToQuestion[] => {
|
||||
return actions.filter((action) => action.objective === "jumpToQuestion");
|
||||
return actions.filter((action): action is TActionJumpToQuestion => action.objective === "jumpToQuestion");
|
||||
};
|
||||
|
||||
// function to validate hidden field or question id
|
||||
|
||||
Reference in New Issue
Block a user