Skip to content

Commit

Permalink
Merge pull request #196 from wearepal/dsm-dtm-extended
Browse files Browse the repository at this point in the history
fixed bug for undefined inputs causing crashes
  • Loading branch information
paulthatjazz authored Nov 13, 2023
2 parents 0db25b3 + 6f0abf9 commit 07444f3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export class MapLayerComponent extends BaseComponent {
}
else {
delete editorNode.meta.errorMessage
this.callback(node.id, inputs["in"][0] as BooleanTileGrid | NumericTileGrid | CategoricalTileGrid)

if (inputs["in"][0]) this.callback(node.id, inputs["in"][0] as BooleanTileGrid | NumericTileGrid | CategoricalTileGrid)
else editorNode.meta.errorMessage = 'No input'

}
editorNode.update()
}
Expand Down

0 comments on commit 07444f3

Please sign in to comment.