diff --git a/app/hooks/usePolicy.ts b/app/hooks/usePolicy.ts index fe1cfecae..dd8e565c9 100644 --- a/app/hooks/usePolicy.ts +++ b/app/hooks/usePolicy.ts @@ -18,7 +18,12 @@ export default function usePolicy(entity?: string | Model | null) { : ""; React.useEffect(() => { - if (entity && typeof entity !== "string") { + if ( + entity && + typeof entity !== "string" && + !entity.isNew && + !entity.isSaving + ) { // The policy for this model is missing, reload relationships for this model. if (!policies.get(entity.id)) { void entity.loadRelations();