@superinterface/react 5.4.2 → 5.4.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/index.cjs CHANGED
@@ -43309,13 +43309,10 @@ var splitRunSteps = function(_ref) {
43309
43309
  runSteps
43310
43310
  ];
43311
43311
  }
43312
- var nextRunStepIndex = runSteps.slice(0, messageCreationRunStepIndex).findLastIndex(function(runStep) {
43312
+ var prevMcIndex = runSteps.slice(0, messageCreationRunStepIndex).findLastIndex(function(runStep) {
43313
43313
  return runStep.step_details.type === "message_creation";
43314
43314
  });
43315
- if (nextRunStepIndex === -1) {
43316
- nextRunStepIndex = 0;
43317
- }
43318
- var laterRunSteps = runSteps.slice(nextRunStepIndex, messageCreationRunStepIndex);
43315
+ var laterRunSteps = prevMcIndex === -1 ? runSteps.slice(0, messageCreationRunStepIndex) : [];
43319
43316
  var prevRunStepIndex = runSteps.slice(messageCreationRunStepIndex + 1).findIndex(function(runStep) {
43320
43317
  return runStep.step_details.type === "message_creation";
43321
43318
  });