@gamelearn/arcade-components 2.5.1 → 2.5.2
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/dist/components/conversational-pro-component/components/ConversationalProComponent.js
CHANGED
|
@@ -130,6 +130,8 @@ var ConversationProViewer = function ConversationProViewer(_ref) {
|
|
|
130
130
|
var findLastLineBranched = (0, _react.useCallback)(function () {
|
|
131
131
|
var lastEdge = edges.find(function (edge) {
|
|
132
132
|
return edge.fromId === lastNodeId;
|
|
133
|
+
}) || edges.find(function (edge) {
|
|
134
|
+
return edge.toId === lastNodeId;
|
|
133
135
|
});
|
|
134
136
|
var lastLine = lines.find(function (line) {
|
|
135
137
|
return line.id === lastEdge.fromId;
|
|
@@ -203,6 +203,8 @@ var DialogComponent = function DialogComponent(_ref) {
|
|
|
203
203
|
var findLastLineBranched = (0, _react.useCallback)(function () {
|
|
204
204
|
var lastEdge = edges.find(function (edge) {
|
|
205
205
|
return edge.fromId === lastNodeId;
|
|
206
|
+
}) || edges.find(function (edge) {
|
|
207
|
+
return edge.toId === lastNodeId;
|
|
206
208
|
});
|
|
207
209
|
var lastL = lines.find(function (l) {
|
|
208
210
|
return l.id === lastEdge.fromId;
|