Skip to content

Commit

Permalink
fixed backspace crashing UI issue
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Kushwah <vishal.kushwah@domo.com>
  • Loading branch information
Vishal Kushwah committed Sep 16, 2022
1 parent a1490cc commit 64bd9c4
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 64bd9c4

Please sign in to comment.