fix: wait for project (#435)
This commit is contained in:
Родитель
f097807dde
Коммит
fc4cb96d2a
|
@ -1153,7 +1153,9 @@ export default class PredictPage extends React.Component<IPredictPageProps, IPre
|
|||
|
||||
private async loadProject(projectId: string) {
|
||||
const project = this.props.recentProjects.find((project) => project.id === projectId);
|
||||
await this.props.actions.loadProject(project);
|
||||
this.props.appTitleActions.setTitle(project.name);
|
||||
if (project) {
|
||||
await this.props.actions.loadProject(project);
|
||||
this.props.appTitleActions.setTitle(project.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче