Closed pendenaor closed 6 years ago
Oh, my. Thank you for reporting the issue. I have just fixed the example.
The compose.configuration
object can be undefined
sometimes if there was no configuration applied to this stamp. So, instead of this:
if (stamp.compose.configuration.addFactorSetter) {
there should have been
if (stamp.compose.configuration && stamp.compose.configuration.addFactorSetter) {
Hi,
I can't make this sample code (from https://github.com/stampit-org/stampit/blob/master/docs/API.md#examples-2) work. it throws an error
TypeError: Cannot read property 'addFactorSetter' of undefined at Object.stampit.statics.init:13:35
NB: great work, great ideas 👍 But i'm eager to view more detailed examples