You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(billing): key deploy gate on URL workspaceId + refetch entitlement on open
Address review findings:
- key useWorkspaceApiExecutionEntitlement on the URL workspaceId (available on
mount) instead of workflowWorkspaceId (null until the workflow map resolves),
so the gate fires immediately instead of leaving the tabs ungated until then
- staleTime 0 so reopening the deploy modal refetches entitlement; a plan upgrade
happens outside this query's invalidation graph, so the gate self-heals on open
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/deploy/components/deploy-modal/deploy-modal.tsx
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -160,10 +160,13 @@ export function DeployModal({
0 commit comments