diff --git a/documentation/src/refine-theme/doc-survey-widget.tsx b/documentation/src/refine-theme/doc-survey-widget.tsx index a30fbe8..0ce3b91 100644 --- a/documentation/src/refine-theme/doc-survey-widget.tsx +++ b/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;