Skip to content

Commit

Permalink
Use pk of group and title from profile
Browse files Browse the repository at this point in the history
  • Loading branch information
ridoo committed Feb 27, 2025
1 parent fc9ba4b commit 2d96e06
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ async function createGroupSelectorWidget(setInferenceGroup) {
const json = await group_response.json();
const groupProfiles = json.group_profiles.map((profile) => {
return {
// we take the profile's name
title: profile.group.name,
pk: profile.group.pk
// but have to reference the core group
pk: profile.pk
};
});

Expand Down

0 comments on commit 2d96e06

Please sign in to comment.