fix: fix tags repr in library edit card
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2329>
This commit is contained in:
parent
88d3e23cc9
commit
25d378ae16
|
@ -108,7 +108,10 @@ const updatedFields = computed(() => {
|
|||
if (state?.[id]) {
|
||||
const oldState = state[id]
|
||||
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
|
||||
result.diff = diffWordsWithSpace(result.oldRepr, result.newRepr)
|
||||
|
|
Loading…
Reference in New Issue