From ed9b6dbf2bd4a85835004752d1c34f664dfeb804 Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Sun, 16 Aug 2020 20:21:21 -0700 Subject: [PATCH] fixing console error about bad html attribute (#10604) --- 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 e306a7a8a8..22b04edbd0 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}