Skip to content

Commit

Permalink
fixed backspace crashing UI issue (#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>
  • Loading branch information
vkushwah and Vishal Kushwah committed Sep 19, 2022
1 parent e05fb74 commit 0a5d543
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 0a5d543

Please sign in to comment.