mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-26 11:40:56 -05:00
fix: discard unsaved group settings and key the groups list (#28076)
* fix: stop unsaved group settings from persisting into the group list state * fix: key the groups list so an open modal cannot rebind to another group
This commit is contained in:
@@ -176,7 +176,7 @@
|
||||
|
||||
{#if filteredGroups.length !== 0}
|
||||
<div class="mt-1 grid grid-cols-1">
|
||||
{#each filteredGroups as group, idx}
|
||||
{#each filteredGroups as group, idx (group.id)}
|
||||
<GroupItem {group} {setGroups} {defaultPermissions} />
|
||||
{#if idx < filteredGroups.length - 1}
|
||||
<hr class="border-gray-50 dark:border-gray-850/40" />
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
features: { ...DEFAULT_PERMISSIONS.features, ...loadedPermissions.features },
|
||||
settings: { ...DEFAULT_PERMISSIONS.settings, ...loadedPermissions.settings }
|
||||
};
|
||||
data = group?.data ?? {};
|
||||
data = structuredClone(group?.data ?? {});
|
||||
|
||||
userCount = group?.member_count ?? 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user