ソースを参照

Update doc-survey-widget.tsx

Stefan Pejcic 1 年間 前
コミット
e889326257
1 ファイル変更1 行追加1 行削除
  1. 1 1
      documentation/src/refine-theme/doc-survey-widget.tsx

+ 1 - 1
documentation/src/refine-theme/doc-survey-widget.tsx

@@ -60,7 +60,7 @@ export const DocSurveyWidget = ({ className }: Props) => {
         }
         }
 
 
         const data = await updateSurvey({
         const data = await updateSurvey({
-            surveyId: survey.id,
+            surveyId: survey?.id,
             body: { response: selectedOption, responseText: text },
             body: { response: selectedOption, responseText: text },
         });
         });
         if (!data) return;
         if (!data) return;