mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-28 20:21:50 +01:00
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:
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>;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user