Update doc-survey-widget.tsx

This commit is contained in:
Stefan Pejcic 2024-02-11 19:51:28 +01:00 committed by GitHub
parent 160d5c9396
commit e889326257
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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