@mastra/react 1.7.0 → 1.7.1-alpha.0

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.js CHANGED
@@ -297,7 +297,7 @@ const mergeBgTaskMetadata = (existing, mode, args, otherMetadata) => {
297
297
  * `mapWorkflowStreamChunkToWatchResult` from the previous accumulator.
298
298
  */
299
299
  const mapWorkflowStreamChunkToWatchResult = (prev, chunk) => {
300
- const previous = prev ?? {
300
+ const previous = prev && typeof prev === "object" && prev.steps && typeof prev.steps === "object" ? prev : {
301
301
  status: "running",
302
302
  input: void 0,
303
303
  steps: {}