Skip to content

Commit

Permalink
fix: check only if parentNode exists (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenjohanson authored Aug 30, 2024
1 parent deb3683 commit e3053d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teammapper-frontend/mmp/src/map/handlers/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default class Nodes {
properties.id = overwriteId || uuidv4()
properties.parent = parentNode

if (parentNode.hidden) {
if (parentNode && parentNode.hidden) {
properties.hidden = true
}

Expand Down

0 comments on commit e3053d9

Please sign in to comment.