Commit 2ec8f766 authored by Eva Bardou's avatar Eva Bardou
Browse files

Correctly initialize transcriptions attribute when creating a line transcription for the first time

parent 76ded081
......@@ -96,7 +96,14 @@ export const mutations = {
if (index < 0) return
state.all[index] = {
...state.all[index],
currentTrans: { ...state.all[index].currentTrans, pk: lineTrans.pk }
currentTrans: { ...state.all[index].currentTrans, pk: lineTrans.pk },
transcriptions: {
...state.all[index].transcriptions,
[lineTrans.transcription]: {
...state.all[index].transcriptions[lineTrans.transcription],
pk: lineTrans.pk
}
}
}
}
// Force reference update on the whole array
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment