@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dilipod/ui",
3
- "version": "0.4.12",
3
+ "version": "0.4.14",
4
4
  "description": "Dilipod Design System - Shared UI components and styles",
5
5
  "author": "Dilipod <hello@dilipod.com>",
6
6
  "license": "MIT",
@@ -629,8 +629,9 @@ export function WorkflowViewer({
629
629
  throw new Error('n8n workflow must have a nodes array')
630
630
  }
631
631
  } else {
632
- if (!parsed.nodes || !Array.isArray(parsed.nodes)) {
633
- throw new Error('Sim workflow must have a nodes array')
632
+ // Sim Studio uses blocks object (not nodes array)
633
+ if (!parsed.blocks || typeof parsed.blocks !== 'object') {
634
+ throw new Error('Sim workflow must have a blocks object')
634
635
  }
635
636
  }
636
637
  return parsed