Skip to content

Commit bf43e72

Browse files
authored
filter out orphaned user ids from meeting editors (#1358)
1 parent 583143c commit bf43e72

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Updated German translations.
44
* Fix favicon.
55
* Mask visibility=1 fields with asterisks in GetChanges json_data for unauthorized users.
6+
* Fixed an issue where a service body could not be edited if one of its meeting editor users was deleted in a previous version.
67

78
## 4.0.1 (November 5, 2025)
89
* Fixed longitude/latitude fields to be read-only when auto-geocoding is enabled

src/resources/js/components/ServiceBodyForm.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
worldId: selectedServiceBody?.worldId ?? ''
6161
};
6262
63-
let assignedUserIdsSelected: number[] = $state(selectedServiceBody?.assignedUserIds ?? []);
63+
let assignedUserIdsSelected: number[] = $state((selectedServiceBody?.assignedUserIds ?? []).filter((userId) => userId in userIdToUser));
6464
let savedServiceBody: ServiceBody;
6565
6666
const { data, errors, form, setData } = createForm({

0 commit comments

Comments
 (0)