fix(ui): guard inbox policy render state

Keep the policy value narrowed before rendering materialization state after an unmaterialized policy is loaded.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-08-16 19:27:13 +00:00
1 parent 1301dfcdee
commit 8ff0c1144f
1 file changed
+1 -1
@@ -108,7 +108,7 @@ export function InboxAgentPolicyControl({ companyId }: { companyId: string | nul
);
}
if (policyQuery.isLoading || !draft) {
if (policyQuery.isLoading || !policy || !draft) {
return <div className="text-sm text-muted-foreground">Loading inbox agent policy…</div>;
}