From a0f0f698f4f7d5b71891b929f24398cce582c9f9 Mon Sep 17 00:00:00 2001 From: Irina Shebarshina <76280175+rekilina@users.noreply.github.com> Date: Wed, 3 Jan 2024 21:11:26 +0300 Subject: [PATCH] fix(SelectControl): select zero value (#26353) --- .../src/explore/components/controls/SelectControl.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/src/explore/components/controls/SelectControl.jsx b/superset-frontend/src/explore/components/controls/SelectControl.jsx index 166382a15ca78..7881fc6858bec 100644 --- a/superset-frontend/src/explore/components/controls/SelectControl.jsx +++ b/superset-frontend/src/explore/components/controls/SelectControl.jsx @@ -215,7 +215,7 @@ export default class SelectControl extends React.PureComponent { const getValue = () => { const currentValue = - value || + value ?? (this.props.default !== undefined ? this.props.default : undefined); // safety check - the value is intended to be undefined but null was used