Skip to content

Commit

Permalink
fix null refs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyjor committed Oct 3, 2024
1 parent bf89743 commit c8c26ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/ProjectPage/ProjectPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ class ProjectPage extends Component {
lists.forEach((list) => {
// check if parent exists
const parentExists = Object.values(parents).find(
(parent) => parent?.trello.id === list.id,
(parent) => parent?.trello?.id === list.id,
);
if (!parentExists) {
ParentController.createParent(list.name, list);
Expand Down Expand Up @@ -368,8 +368,8 @@ class ProjectPage extends Component {
(node) => node?.trello?.id === card.id,
);
const nodeParentId = Object.values(parents).find(
(parent) => parent?.trello.id === card.idList,
).id;
(parent) => parent?.trello?.id === card.idList,
)?.id;
if (!nodeExists) {
NodeController.createNode(
'child',
Expand Down

0 comments on commit c8c26ee

Please sign in to comment.