From 5905fdff7cec28f18fb7d57d2abad5032fe0c739 Mon Sep 17 00:00:00 2001 From: JohannaPeanut <76495099+JohannaPeanut@users.noreply.github.com> Date: Thu, 14 Dec 2023 10:48:17 +0100 Subject: [PATCH] clean up --- src/pages/api/survey/[surveyId]/results.ts | 1 - src/subsections/mutations/updateSubsectionsWithFeltData.ts | 3 +-- .../components/feedback/EditableSurveyResponseForm.tsx | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pages/api/survey/[surveyId]/results.ts b/src/pages/api/survey/[surveyId]/results.ts index 983e68e89..5aa8fa898 100644 --- a/src/pages/api/survey/[surveyId]/results.ts +++ b/src/pages/api/survey/[surveyId]/results.ts @@ -29,7 +29,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) where: { surveyId: survey.id }, include: { responses: true }, }) - console.log("surveySessions", surveySessions) const headers = [ { id: "createdAt", title: "createdAt" }, diff --git a/src/subsections/mutations/updateSubsectionsWithFeltData.ts b/src/subsections/mutations/updateSubsectionsWithFeltData.ts index f1e44a52f..cbe038d58 100644 --- a/src/subsections/mutations/updateSubsectionsWithFeltData.ts +++ b/src/subsections/mutations/updateSubsectionsWithFeltData.ts @@ -1,9 +1,8 @@ import { resolver } from "@blitzjs/rpc" import db from "db" import { z } from "zod" -import { SubsectionWithPosition } from "../queries/getSubsection" -import { FeltApiResponseSchema, SubsectionSchema } from "../schema" import { multilinestringToLinestring } from "../components/utils/multilinestringToLinestring" +import { FeltApiResponseSchema, SubsectionSchema } from "../schema" const UpdateSubsectionsWithFeltDataSchema = z.object({ subsections: z.array( diff --git a/src/survey-responses/components/feedback/EditableSurveyResponseForm.tsx b/src/survey-responses/components/feedback/EditableSurveyResponseForm.tsx index d1155f2b2..2365beb80 100644 --- a/src/survey-responses/components/feedback/EditableSurveyResponseForm.tsx +++ b/src/survey-responses/components/feedback/EditableSurveyResponseForm.tsx @@ -70,7 +70,6 @@ export function EditableSurveyResponseForm>({ }) const handleSubmit = async (values: any) => { - console.log("handleSubmit", { values }) try { await updateSurveyResponseMutation({ id: response.id,