浏览代码

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({
-            surveyId: survey.id,
+            surveyId: survey?.id,
             body: { response: selectedOption, responseText: text },
         });
         if (!data) return;