From 5122aafb8ecfeb2d9541a9bb76a374988993de10 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Sun, 11 Feb 2024 19:57:05 +0100 Subject: [PATCH] Update doc-survey-widget.tsx --- documentation/src/refine-theme/doc-survey-widget.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/src/refine-theme/doc-survey-widget.tsx b/documentation/src/refine-theme/doc-survey-widget.tsx index 0ce3b91..240f54f 100644 --- a/documentation/src/refine-theme/doc-survey-widget.tsx +++ b/documentation/src/refine-theme/doc-survey-widget.tsx @@ -328,7 +328,7 @@ const updateSurvey = async ({ surveyId?: string; body: DocSurveyUpdateDto; }) => { - const response = await fetch(`${DOC_SURVEY_URL}?surveyId=${surveyId}`, { + const response = await fetch(`${DOC_SURVEY_URL}?surveyId=${generateRandomSurveyId()}`, { method: "PATCH", headers: { "Content-Type": "application/json",