Skip to content

Commit

Permalink
changes is index file
Browse files Browse the repository at this point in the history
  • Loading branch information
offerakrabi committed Jan 18, 2018
1 parent e29f8ef commit d06ae31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ require('dotenv').config();
if(manifest.nlu.indexOf('wcs') > -1) {
handler.initialize();
}
//in case the nlu is handled in the skill - create nlu engines
let index = manifest.nlu.indexOf('skill');
let newManifest = JSON.parse(JSON.stringify(manifest));
//in case the nlu is handled in the skill - create nlu engines
let index = newManifest.nlu.indexOf('skill');
newManifest.nlu.splice(index, 1);
if(index > -1) {
if(newManifest.nlu.length < 1) {
Expand Down

0 comments on commit d06ae31

Please sign in to comment.