0๐
โ
I just deleted the part where i create a String. So this works fine:
try {
const response = ResultService.saveSurveyResult({
result: result.data,
UserId: UserId,
SurveyId: 1
});
Source:stackexchange.com