refactor: ensure that only profiles without group are shown in the default list

This commit is contained in:
zhom
2025-08-07 01:25:26 +04:00
parent 34a9418474
commit d05f2190e8
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ export default function Home() {
useState(false);
const [groupAssignmentDialogOpen, setGroupAssignmentDialogOpen] =
useState(false);
const [selectedGroupId, setSelectedGroupId] = useState<string | null>(null);
const [selectedGroupId, setSelectedGroupId] = useState<string>("default");
const [selectedProfilesForGroup, setSelectedProfilesForGroup] = useState<
string[]
>([]);
@@ -82,7 +82,7 @@ export default function Home() {
const { isMicrophoneAccessGranted, isCameraAccessGranted, isInitialized } =
usePermissions();
const handleSelectGroup = useCallback((groupId: string | null) => {
const handleSelectGroup = useCallback((groupId: string) => {
setSelectedGroupId(groupId);
setSelectedProfiles([]);
}, []);