Browse Source

Update doc-survey-widget.tsx

Stefan Pejcic 1 year ago
parent
commit
5122aafb8e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      documentation/src/refine-theme/doc-survey-widget.tsx

+ 1 - 1
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",