@dilipod/ui 0.4.12 → 0.4.14

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.mjs CHANGED
@@ -5040,8 +5040,8 @@ function WorkflowViewer({
5040
5040
  throw new Error("n8n workflow must have a nodes array");
5041
5041
  }
5042
5042
  } else {
5043
- if (!parsed.nodes || !Array.isArray(parsed.nodes)) {
5044
- throw new Error("Sim workflow must have a nodes array");
5043
+ if (!parsed.blocks || typeof parsed.blocks !== "object") {
5044
+ throw new Error("Sim workflow must have a blocks object");
5045
5045
  }
5046
5046
  }
5047
5047
  return parsed;