Commit 28b4c4c
authored
fix(blocks): resolve variable display in mothership resource preview (#4226)
* fix(blocks): resolve variable display in mothership resource preview
Variables block showed empty assignments in the embedded workflow preview
because currentWorkflowId was read from URL params, which don't contain
workflowId in the mothership route. Fall back to activeWorkflowId from
the workflow registry.
* fix(blocks): narrow currentWorkflowId to string to satisfy strict null checks1 parent 32541e7 commit 28b4c4c
1 file changed
Lines changed: 2 additions & 2 deletions
File tree
- apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
865 | | - | |
866 | | - | |
867 | 865 | | |
868 | 866 | | |
869 | 867 | | |
| |||
877 | 875 | | |
878 | 876 | | |
879 | 877 | | |
| 878 | + | |
| 879 | + | |
880 | 880 | | |
881 | 881 | | |
882 | 882 | | |
| |||
0 commit comments