From 7241eb2538ac51e68465b163c6574f4a94e3ae68 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Fri, 14 Aug 2020 12:32:33 -0700 Subject: [PATCH] fixing console error about bad html attribute --- superset-frontend/src/components/Button/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/components/Button/index.tsx b/superset-frontend/src/components/Button/index.tsx index e306a7a8a831..22b04edbd007 100644 --- a/superset-frontend/src/components/Button/index.tsx +++ b/superset-frontend/src/components/Button/index.tsx @@ -104,10 +104,13 @@ export default function Button(props: ButtonProps) { {props.children} ); + const whittledProps = { ...buttonProps }; + delete whittledProps.dropdownItems; + if (dropdownItems) { button = (
- + {props.children}