fix: fix tags repr in library edit card

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2329>
environments/review-docs-renov-vr2nay/deployments/16781
Kasper Seweryn 2023-01-20 22:00:02 +01:00
rodzic 88d3e23cc9
commit 25d378ae16
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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)