diff --git a/fe/src/pages/GroupsPage.vue b/fe/src/pages/GroupsPage.vue index 5f14579..edc157e 100644 --- a/fe/src/pages/GroupsPage.vue +++ b/fe/src/pages/GroupsPage.vue @@ -268,11 +268,14 @@ const selectGroup = (group: Group) => { }; const openCreateListDialog = (group: Group) => { - availableGroupsForModal.value = [{ - label: group.name, - value: group.id - }]; - showCreateListModal.value = true; + // Ensure we have the latest groups data + fetchGroups().then(() => { + availableGroupsForModal.value = [{ + label: group.name, + value: group.id + }]; + showCreateListModal.value = true; + }); }; const onListCreated = (newList: any) => { @@ -280,6 +283,8 @@ const onListCreated = (newList: any) => { message: `List '${newList.name}' created successfully.`, type: 'success' }); + // Optionally refresh the groups list to show the new list + fetchGroups(); }; onMounted(async () => {