fix: feedback

This commit is contained in:
pandeymangg
2025-10-31 11:32:01 +05:30
parent 38108a32d1
commit 80789327d0

View File

@@ -59,7 +59,7 @@ export type TActionCalculate = z.infer<typeof ZActionCalculate>;
export const ZActionRequireAnswer = z.object({
id: ZId,
objective: z.literal("requireAnswer"),
target: ZSurveyElementId, // Targets elements, validated to be outside current block
target: ZSurveyElementId,
});
export type TActionRequireAnswer = z.infer<typeof ZActionRequireAnswer>;
@@ -103,7 +103,6 @@ export const ZSurveyBlock = z
logicFallback: ZSurveyBlockId.optional(),
buttonLabel: ZI18nString.optional(),
backButtonLabel: ZI18nString.optional(),
isDraft: z.boolean().optional(),
})
.superRefine((block, ctx) => {
// Validate element IDs are unique within block