fix(frontend): old brain legacy (#2310)

# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
This commit is contained in:
Antoine Dewez 2024-03-06 12:06:19 -08:00 committed by GitHub
parent 8ad0cd9d7e
commit a9df84332a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,16 +59,17 @@ export const SettingsTabContent = ({
<div className={styles.general_information}>
<GeneralInformation hasEditRights={hasEditRights} />
</div>
{brain?.integration_description?.allow_model_change && (
<div className={styles.model_information}>
<ModelSelection
accessibleModels={accessibleModels}
hasEditRights={hasEditRights}
brainId={brainId}
handleSubmit={handleSubmit}
/>
</div>
)}
{brain?.integration_description?.allow_model_change ||
(brain?.brain_type === "doc" && (
<div className={styles.model_information}>
<ModelSelection
accessibleModels={accessibleModels}
hasEditRights={hasEditRights}
brainId={brainId}
handleSubmit={handleSubmit}
/>
</div>
))}
</div>
{hasEditRights && (
<div className={styles.save_button}>