fix clearing of contents of some input field when the tag is removed

e.g. when using the trash can icon on the UI field
This commit is contained in:
Martin Raifer
2023-08-02 17:54:22 +02:00
parent ad1162dd17
commit 57ca36227b
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -472,7 +472,7 @@ export function uiFieldText(field, context) {
const vals = getVals(tags);
const isMixed = vals.size > 1;
var val = vals.size === 1 ? [...vals][0] : '';
var val = vals.size === 1 ? [...vals][0] ?? '' : '';
var shouldUpdate;
if (field.type === 'number' && val) {