@gamelearn/arcade-components 0.22.2 → 0.22.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/dist/components/conversational-pro-component/components/ConversationalProComponent.js
CHANGED
|
@@ -40,7 +40,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "und
|
|
|
40
40
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
41
|
|
|
42
42
|
var ConversationProViewer = function ConversationProViewer(_ref) {
|
|
43
|
-
var _background$img;
|
|
43
|
+
var _background$img, _currentLineData$slot;
|
|
44
44
|
|
|
45
45
|
var emitEvent = _ref.emitEvent,
|
|
46
46
|
lines = _ref.lines,
|
|
@@ -91,9 +91,9 @@ var ConversationProViewer = function ConversationProViewer(_ref) {
|
|
|
91
91
|
return line.slots;
|
|
92
92
|
});
|
|
93
93
|
var lastLine = lines[currentLine - 1] ? lines[currentLine - 1] : {};
|
|
94
|
-
var hasCharacters = !currentLineData.decision && currentLineData.slots.filter(function (slot) {
|
|
94
|
+
var hasCharacters = !currentLineData.decision && ((_currentLineData$slot = currentLineData.slots) === null || _currentLineData$slot === void 0 ? void 0 : _currentLineData$slot.filter(function (slot) {
|
|
95
95
|
return slot.uid;
|
|
96
|
-
}).length;
|
|
96
|
+
}).length);
|
|
97
97
|
var currentSlots = [];
|
|
98
98
|
|
|
99
99
|
if (currentLineData.slots) {
|