Refactor entity synchronization logic in Area, Brand, Item, RoomFunction, and Room models; improve ID handling and streamline foreign key resolution in settings
This commit is contained in:
parent
7833c4828b
commit
543494120c
9 changed files with 170 additions and 96 deletions
|
@ -74,7 +74,7 @@ const ComboBoxWidget = (() => {
|
|||
removeBtn.disabled = selected.length === 0;
|
||||
|
||||
if (selected.length === 1) {
|
||||
input.value = selected[0].textContent;
|
||||
input.value = selected[0].textContent.trim();
|
||||
currentlyEditing = selected[0];
|
||||
addBtn.disabled = input.value.trim() === '';
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue