lisichatbot 2.1.4 → 2.1.5
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 +1 -1
- package/src/index.js +2 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -3680,7 +3680,7 @@ function init(flowName, flowConfig, options = {}) {
|
|
|
3680
3680
|
...editData // Edit data takes precedence
|
|
3681
3681
|
};
|
|
3682
3682
|
} else {
|
|
3683
|
-
chatState.data = flowConfig.initialData || {};
|
|
3683
|
+
chatState.data = { ...(flowConfig.initialData || {}) };
|
|
3684
3684
|
}
|
|
3685
3685
|
|
|
3686
3686
|
chatState.history = [];
|
|
@@ -3822,7 +3822,7 @@ function getState() {
|
|
|
3822
3822
|
|
|
3823
3823
|
function reset() {
|
|
3824
3824
|
chatState.step = 0;
|
|
3825
|
-
chatState.data = flowData.initialData || {};
|
|
3825
|
+
chatState.data = { ...(flowData.initialData || {}) };
|
|
3826
3826
|
chatState.history = [];
|
|
3827
3827
|
chatState.currentSelection = null;
|
|
3828
3828
|
chatState.chatMode = 'create'; // ✅ Reset to create mode
|