mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-11 17:19:33 -06:00
Merge latest changes and release formbricks-js beta
This commit is contained in:
@@ -50,7 +50,18 @@ export const buildWhereClause = (filterCriteria?: TSurveyFilterCriteria) => {
|
||||
whereClause.push({ createdBy: filterCriteria.createdBy.userId });
|
||||
}
|
||||
if (filterCriteria.createdBy.value[0] === "others") {
|
||||
whereClause.push({ createdBy: { not: filterCriteria.createdBy.userId } });
|
||||
whereClause.push({
|
||||
OR: [
|
||||
{
|
||||
createdBy: {
|
||||
not: filterCriteria.createdBy.userId,
|
||||
},
|
||||
},
|
||||
{
|
||||
createdBy: null,
|
||||
},
|
||||
],
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ export const determineImageUploaderVisibility = (questionIdx: number, localSurve
|
||||
case localSurvey.questions.length: // Thank You Card
|
||||
return !!localSurvey.thankYouCard.imageUrl || !!localSurvey.thankYouCard.videoUrl;
|
||||
case -1: // Welcome Card
|
||||
return !!localSurvey.welcomeCard.fileUrl || !!localSurvey.welcomeCard.videoUrl;
|
||||
return false;
|
||||
default:
|
||||
// Regular Survey Question
|
||||
const question = localSurvey.questions[questionIdx];
|
||||
|
||||
Reference in New Issue
Block a user