change(ui): do not set the active project on creation
This commit is contained in:
parent
047a4d0108
commit
82e170ff1c
2 changed files with 4 additions and 4 deletions
|
|
@ -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!));
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue