Update doc-survey-widget.tsx

This commit is contained in:
Stefan Pejcic
2024-02-11 19:57:05 +01:00
committed by GitHub
parent e889326257
commit 5122aafb8e

View File

@@ -328,7 +328,7 @@ const updateSurvey = async ({
surveyId?: string;
body: DocSurveyUpdateDto;
}) => {
const response = await fetch(`${DOC_SURVEY_URL}?surveyId=${surveyId}`, {
const response = await fetch(`${DOC_SURVEY_URL}?surveyId=${generateRandomSurveyId()}`, {
method: "PATCH",
headers: {
"Content-Type": "application/json",