diff --git a/.changeset/evil-roses-kick.md b/.changeset/evil-roses-kick.md new file mode 100644 index 000000000..cd8645fc1 --- /dev/null +++ b/.changeset/evil-roses-kick.md @@ -0,0 +1,5 @@ +--- +'@orchestrator-ui/orchestrator-ui-components': patch +--- + +Fix regression in subscription delta diff --git a/packages/orchestrator-ui-components/src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx b/packages/orchestrator-ui-components/src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx index 271e7eb51..5f12ec519 100644 --- a/packages/orchestrator-ui-components/src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx +++ b/packages/orchestrator-ui-components/src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx @@ -47,7 +47,10 @@ export const WfoProcessSubscriptionDelta = ({ data?.current_state?.subscription?.subscription_id ?? ''; const newText = data?.current_state?.subscription ?? null; const oldSubscriptions = data?.current_state?.__old_subscriptions__ || {}; - const oldSubscription = subscriptionId in oldSubscriptions; + const oldSubscription = + subscriptionId in oldSubscriptions + ? oldSubscriptions[subscriptionId] + : null; const oldText = oldSubscription || null; return isFetching ? (