mirror of
https://github.com/plankanban/planka.git
synced 2025-12-26 09:15:01 +03:00
fix: Prevent app crash when board is added before its project in the store
This commit is contained in:
@@ -350,7 +350,7 @@ export default class extends BaseModel {
|
||||
return this.getBoardMembershipsQuerySet()
|
||||
.toModelArray()
|
||||
.flatMap(({ board: { project: projectModel } }) => {
|
||||
if (projectIds.includes(projectModel.id)) {
|
||||
if (!projectModel || projectIds.includes(projectModel.id)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user