0👍
Thank you Bernard Borg for your answer. I have now modified the code as follows, which has solved my problem:
const vocabulariesWithAnswer = ref([]);
onMounted(() => {
vocabulariesWithAnswer.value = data.map((vocabulary) => {
return {
spanish: vocabulary.spanish,
german: vocabulary.german,
answer: "",
};
});
});
Source:stackexchange.com