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 <vishal.kushwah@domo.com>

Signed-off-by: Vishal Kushwah <vishal.kushwah@domo.com>
Co-authored-by: Vishal Kushwah <vishal.kushwah@domo.com>
Signed-off-by: Koustubh Karmalkar <koustubh_karmalkar@persistent.com>
  • Loading branch information
2 people authored and Koustubh5585 committed Sep 27, 2022
1 parent b9669b5 commit a7ccd6d
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 a7ccd6d

Please sign in to comment.