mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00: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:
parent
aeda6ff13a
commit
18edfff2d6
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue