From e889326257d5859dcce8df4198dd987d152be1ac Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Sun, 11 Feb 2024 19:51:28 +0100 Subject: [PATCH] Update doc-survey-widget.tsx --- documentation/src/refine-theme/doc-survey-widget.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/src/refine-theme/doc-survey-widget.tsx b/documentation/src/refine-theme/doc-survey-widget.tsx index a30fbe8f..0ce3b910 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;