mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
rewrite
This commit is contained in:
@@ -4,13 +4,12 @@ import type { TProject } from '@schema/ProjectSchema';
|
||||
|
||||
const { user } = useLoggedUser()
|
||||
|
||||
const { projectList, actions, project } = useProject();
|
||||
const { data: guestProjects } = useGuestProjectsList()
|
||||
const { projectList, guestProjectList, actions, project } = useProject();
|
||||
|
||||
const selectorProjects = computed(() => {
|
||||
const result: TProject[] = [];
|
||||
if (projectList.value) result.push(...projectList.value);
|
||||
if (guestProjects.value) result.push(...guestProjects.value);
|
||||
if (guestProjectList.value) result.push(...guestProjectList.value);
|
||||
return result;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user