From 9bbe64bd873753d84fa0a3a868b13bfc4b1e8717 Mon Sep 17 00:00:00 2001 From: Julian Bez Date: Fri, 21 Jun 2024 08:32:57 +0100 Subject: [PATCH] fix(insights): Fix display of saved values for number of people on path limits (#23095) --- frontend/src/scenes/insights/EditorFilters/PathsAdvanced.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/scenes/insights/EditorFilters/PathsAdvanced.tsx b/frontend/src/scenes/insights/EditorFilters/PathsAdvanced.tsx index 700da315ace35..bb91b0447a4a6 100644 --- a/frontend/src/scenes/insights/EditorFilters/PathsAdvanced.tsx +++ b/frontend/src/scenes/insights/EditorFilters/PathsAdvanced.tsx @@ -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, @@ -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, @@ -86,6 +87,7 @@ export function PathsAdvanced({ insightProps, ...rest }: EditorFilterProps): JSX }} min={0} max={100000} + defaultValue={localEdgeParameters.maxEdgeWeight} onBlur={updateEdgeParameters} onPressEnter={updateEdgeParameters} />