Prechádzať zdrojové kódy

Update doc-survey-widget.tsx

Stefan Pejcic 1 rok pred
rodič
commit
e889326257

+ 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;