@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.
@@ -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;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "author": "Gamelearn",
4
4
  "license": "unlicense",
5
- "version": "2.5.1",
5
+ "version": "2.5.2",
6
6
  "main": "dist/index.js",
7
7
  "files": [
8
8
  "dist",