Skip to content

Commit

Permalink
addressing linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin Smith committed Feb 20, 2025
1 parent e4e4506 commit 7fab4df
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
20 changes: 12 additions & 8 deletions frontend/src/routes/account-settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,14 +293,18 @@ function AccountSettings() {
Enable confirmation mode
</SettingsSwitch>
)}
{llmConfigMode === "advanced" && <SettingsSwitch
testId="enable-memory-condenser-switch"
name="enable-memory-condenser-switch"
defaultIsToggled={!!settings.ENABLE_DEFAULT_CONDENSER}
isBeta
>
Enable memory condensation
</SettingsSwitch>}

{llmConfigMode === "advanced" && (
<SettingsSwitch
testId="enable-memory-condenser-switch"
name="enable-memory-condenser-switch"
defaultIsToggled={!!settings.ENABLE_DEFAULT_CONDENSER}
isBeta
>
Enable memory condensation
</SettingsSwitch>
)}

{llmConfigMode === "advanced" && confirmationModeIsEnabled && (
<div>
<SettingsDropdownInput
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/utils/settings-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const extractAdvancedFormData = (formData: FormData) => {
LLM_BASE_URL,
CONFIRMATION_MODE,
SECURITY_ANALYZER,
ENABLE_DEFAULT_CONDENSER

Check failure on line 46 in frontend/src/utils/settings-utils.ts

View workflow job for this annotation

GitHub Actions / Lint frontend

Insert `,`
};
};

Expand All @@ -55,6 +56,7 @@ export const extractSettings = (formData: FormData): Partial<Settings> => {
LLM_BASE_URL,
CONFIRMATION_MODE,
SECURITY_ANALYZER,
ENABLE_DEFAULT_CONDENSER

Check failure on line 59 in frontend/src/utils/settings-utils.ts

View workflow job for this annotation

GitHub Actions / Lint frontend

Insert `,`
} = extractAdvancedFormData(formData);

return {
Expand All @@ -65,5 +67,6 @@ export const extractSettings = (formData: FormData): Partial<Settings> => {
LLM_BASE_URL,
CONFIRMATION_MODE,
SECURITY_ANALYZER,
ENABLE_DEFAULT_CONDENSER

Check failure on line 70 in frontend/src/utils/settings-utils.ts

View workflow job for this annotation

GitHub Actions / Lint frontend

Insert `,`
};
};

0 comments on commit 7fab4df

Please sign in to comment.