change(ui): do not set the active project on creation

This commit is contained in:
Shekar Siri 2025-02-04 13:02:29 +01:00
parent 047a4d0108
commit 82e170ff1c
2 changed files with 4 additions and 4 deletions

View file

@ -44,8 +44,8 @@ function ProjectForm(props: Props) {
toast.success('Project created successfully');
onClose?.(null);
mstore.searchStore.clearSearch();
mstore.searchStoreLive.clearSearch();
// mstore.searchStore.clearSearch();
// mstore.searchStoreLive.clearSearch();
mstore.initClient();
projectsStore.setConfigProject(parseInt(resp.id!));

View file

@ -161,8 +161,8 @@ export default class ProjectsStore {
} else {
this.list.push(newSite);
}
this.setSiteId(newSite.id!);
this.active = newSite;
// this.setSiteId(newSite.id!);
// this.active = newSite;
return newSite;
} catch (error: any) {