Skip to content

Commit

Permalink
fix: context-lenght-value
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur committed Oct 21, 2024
1 parent e2d9533 commit 8799086
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions web/containers/ModelSetting/SettingComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const SettingComponent: React.FC<Props> = ({
case 'slider': {
const { min, max, step, value } =
data.controllerProps as SliderComponentProps

Check warning on line 27 in web/containers/ModelSetting/SettingComponent.tsx

View workflow job for this annotation

GitHub Actions / coverage-check

27 line is not covered with tests

return (

Check warning on line 29 in web/containers/ModelSetting/SettingComponent.tsx

View workflow job for this annotation

GitHub Actions / coverage-check

29 line is not covered with tests
<SliderRightPanel
key={data.key}
Expand Down
6 changes: 5 additions & 1 deletion web/containers/SliderRightPanel/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState } from 'react'
import { useEffect, useState } from 'react'

import { Slider, Input, Tooltip } from '@janhq/joi'

Expand Down Expand Up @@ -32,6 +32,10 @@ const SliderRightPanel = ({

useClickOutside(() => setShowTooltip({ max: false, min: false }), null, [])

useEffect(() => {
setVal(value.toString())
}, [value])

return (
<div className="flex flex-col">
<div className="mb-3 flex items-center gap-x-2">
Expand Down

0 comments on commit 8799086

Please sign in to comment.