Skip to content

Commit 53d6d89

Browse files
committed
Refactor AIRulesSection rendering: simplify component usage by removing unnecessary props while maintaining functionality.
1 parent e6e1d49 commit 53d6d89

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/pages/workspace/rules/PolicyRulesPage.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,7 @@ function PolicyRulesPage({route}: PolicyRulesPageProps) {
102102
showReadOnlyModal={showReadOnlyModal}
103103
/>
104104
)}
105-
{isCustomAgentBetaEnabled && (
106-
<AIRulesSection
107-
policyID={policyID}
108-
canWriteRules={canWriteRules}
109-
/>
110-
)}
105+
{isCustomAgentBetaEnabled && <AIRulesSection policyID={policyID} />}
111106
</View>
112107
</WorkspacePageWithSections>
113108
</AccessOrNotFoundWrapper>

0 commit comments

Comments
 (0)