fix: fix tags repr in library edit card

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2329>
This commit is contained in:
Kasper Seweryn 2023-01-20 22:00:02 +01:00
parent 88d3e23cc9
commit 25d378ae16
1 changed files with 4 additions and 1 deletions

View File

@ -108,7 +108,10 @@ const updatedFields = computed(() => {
if (state?.[id]) { if (state?.[id]) {
const oldState = state[id] const oldState = state[id]
result.old = oldState result.old = oldState
result.oldRepr = getValueRepr(('value' in oldState && oldState.value) ?? oldState) ?? '' result.oldRepr = getValueRepr('value' in oldState
? oldState.value
: oldState
) ?? ''
// we compute the diffs between the old and new values // we compute the diffs between the old and new values
result.diff = diffWordsWithSpace(result.oldRepr, result.newRepr) result.diff = diffWordsWithSpace(result.oldRepr, result.newRepr)