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(insights): Fix display of saved values for number of people on path limits #23095

Merged
merged 12 commits into from
Jun 21, 2024
Merged
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
Loading