UpdateQuestion

Function: updateQuestion()

[object Object]

Defined in: app/components/Activity/Edit/EditActivityForm/EditActivityForm.handlers.tsx:131

Updates a specific field of a question within the questions array.

Parameters

index

[object Object]

The index of the question to update.

field

keyof GetSpecificationQuestionResponseDto

The key of the GetSpecificationQuestionResponseDto to modify.

value

[object Object]

The new value for the field.

questions

Partial<GetSpecificationQuestionResponseDto>[]

Current list of questions.

setQuestions

(value) => void

Callback to update the questions state.

Returns

[object Object]

On this page