Skip to content

Commit

Permalink
fixed backspace crashing UI issue (opensearch-project#1034)
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Kushwah <[email protected]>

Signed-off-by: Vishal Kushwah <[email protected]>
Co-authored-by: Vishal Kushwah <[email protected]>
Signed-off-by: Koustubh Karmalkar <[email protected]>
  • Loading branch information
2 people authored and Koustubh5585 committed Sep 27, 2022
1 parent 3d21409 commit 3eb04cc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,13 @@ export const DataConfigPanelItem = ({ fieldOptionList, visualizations }: any) =>
value={configList.span?.interval ?? 1}
min={1}
onChange={(e) => {
e.persist();
setConfigList((staleState) => {
return {
...staleState,
span: {
...staleState.span,
interval: e.target.value,
interval: e.target?.value ?? 1,
},
};
});
Expand Down

0 comments on commit 3eb04cc

Please sign in to comment.