Skip to content

Commit

Permalink
fix(insights): Fix display of saved values for number of people on pa…
Browse files Browse the repository at this point in the history
…th limits (#23095)
  • Loading branch information
webjunkie authored Jun 21, 2024
1 parent 815e9ca commit 9bbe64b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/scenes/insights/EditorFilters/PathsAdvanced.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function PathsAdvanced({ insightProps, ...rest }: EditorFilterProps): JSX
type="number"
min={0}
max={1000}
defaultValue={50}
defaultValue={localEdgeParameters.edgeLimit || 50}
onChange={(value): void =>
setLocalEdgeParameters((state) => ({
...state,
Expand All @@ -64,6 +64,7 @@ export function PathsAdvanced({ insightProps, ...rest }: EditorFilterProps): JSX
type="number"
min={0}
max={100000}
defaultValue={localEdgeParameters.minEdgeWeight}
onChange={(value): void => {
setLocalEdgeParameters((state) => ({
...state,
Expand All @@ -86,6 +87,7 @@ export function PathsAdvanced({ insightProps, ...rest }: EditorFilterProps): JSX
}}
min={0}
max={100000}
defaultValue={localEdgeParameters.maxEdgeWeight}
onBlur={updateEdgeParameters}
onPressEnter={updateEdgeParameters}
/>
Expand Down

0 comments on commit 9bbe64b

Please sign in to comment.