diff --git a/src/components/taskComponents/math/LinearAlgebra/MatrixField.vue b/src/components/taskComponents/math/LinearAlgebra/MatrixField.vue index 980fc37..a5605e2 100644 --- a/src/components/taskComponents/math/LinearAlgebra/MatrixField.vue +++ b/src/components/taskComponents/math/LinearAlgebra/MatrixField.vue @@ -97,12 +97,13 @@ export default { const rowIndex = props.rowIndex; const columnIndex = props.columnIndex; - const userData = getProperty(`${componentPath}__userData`).value; + const userData = getProperty(`${componentPath}__userData`); - const validationMatrix: Array> = await store.dispatch("fetchTaskData", { - userData, - endpoint: `${currentTask.value}/${validationConfig.instruction}` - }); + const validationMatrix: Array> = await store.dispatch("fetchTaskData", { + + endpoint: `${currentTask.value}/${validationConfig.instruction}`, + payload: { userData, instruction: validationConfig.instruction, type: currentTask.value, task: currentTask.value } + }); const isCorrectValue = validationMatrix[rowIndex][columnIndex]; const isCorrect = isCorrectValue;