Skip to content

Commit

Permalink
update check condition
Browse files Browse the repository at this point in the history
  • Loading branch information
khanh1902 committed Jun 29, 2024
1 parent e7436c3 commit 1b2f25d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion actions/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const {
endConversation,
keyValueToObject,
replaceSubFlowValueAssigned,
replaceData,
} = require('../utils/utils');
const { HttpRequest } = require('./HTTPRequest');
const { SubFlow } = require('./SubFlow');
Expand Down Expand Up @@ -283,7 +284,9 @@ class MainDialog extends ComponentDialog {
for (let Case of actions) {
if (!Case) return;

const { condition, value, id } = Case;
let { condition, value, id } = Case;

value = replaceData({ text: value, data });

switch (condition) {
case 'empty':
Expand Down

0 comments on commit 1b2f25d

Please sign in to comment.