wingbot 3.26.2 → 3.26.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wingbot",
3
- "version": "3.26.2",
3
+ "version": "3.26.3",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/AiMatching.js CHANGED
@@ -405,9 +405,7 @@ class AiMatching {
405
405
  }
406
406
 
407
407
  let useState;
408
- if (stateless) {
409
- useState = {};
410
- } else if (intents.length === 0) {
408
+ if (stateless || intents.length === 0) {
411
409
  useState = Object.entries(req.state)
412
410
  .reduce((o, [k, v]) => {
413
411
  if (k.startsWith('@')) {