Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. var configurationArray = flow.get("configurationArray") || [];
  2. var configurationId = msg.topic.split("/")[1];
  3. var configuration = {
  4. configID: this.configurationID,
  5. configurationModules: this.MSGesture.payload
  6. };
  7.  
  8. if(!configurationArray.find(x => x.configID == this, configurationId)){
  9. configurationArray.push(this.configuration);
  10. } else {
  11. //to do
  12. }
  13.  
  14. Cannot read property 'configId' of undefined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement