Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mismatch NGL number between UI and model settings #4458

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

louis-menlo
Copy link
Contributor

@louis-menlo louis-menlo commented Jan 15, 2025

Describe Your Changes

This pull request addressed an issue where Jan application displayed an incorrect maximum number of NGL settings. It always displayed 100 instead of using the value specified in the model configuration.

CleanShot 2025-01-15 at 20 00 44@2x
CleanShot 2025-01-15 at 20 00 26@2x

Fixes Issues

Changes

This pull request includes a change to the web/utils/componentSettings.ts file to add a new case for handling 'ngl' settings in the getConfigurationsData function.

The most important change is:

  • web/utils/componentSettings.ts: Added a new case 'ngl' to set componentSetting.controllerProps.max based on selectedModel?.settings.ngl or a default value of 100.

@github-actions github-actions bot added the type: bug Something isn't working label Jan 15, 2025
Copy link
Contributor

Barecheck - Code coverage report

Total: 69.24%

Your code coverage diff: -0.02% ▾

Uncovered files and lines
FileLines
web/utils/componentSettings.ts16, 19-23, 25, 29, 31, 35, 37, 70-72

@louis-menlo louis-menlo merged commit bde35b4 into dev Jan 15, 2025
15 of 16 checks passed
@louis-menlo louis-menlo deleted the fix/mismatch-between-ui-and-model-configs branch January 15, 2025 13:30
@github-actions github-actions bot added this to the v0.5.14 milestone Jan 15, 2025
@imtuyethan imtuyethan modified the milestones: v0.5.14, v0.5.15 Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Mismatch between Jan UI & model configuration options
3 participants