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