瀏覽代碼

Update doc-survey-widget.tsx

Stefan Pejcic 1 年之前
父節點
當前提交
5122aafb8e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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",