This is an automated email from the ASF dual-hosted git repository.

msyavuz pushed a commit to branch msyavuz/feat/select-deselect-all
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to 
refs/heads/msyavuz/feat/select-deselect-all by this push:
     new cea5b42bb1 fix: remove let and replace it with const
cea5b42bb1 is described below

commit cea5b42bb1e434f30df2fbbd8450861936198965
Author: Mehmet Salih Yavuz <salih.ya...@proton.me>
AuthorDate: Tue Apr 15 12:53:51 2025 +0300

    fix: remove let and replace it with const
---
 superset-frontend/src/components/Select/Select.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/superset-frontend/src/components/Select/Select.tsx 
b/superset-frontend/src/components/Select/Select.tsx
index e99da257a3..d1a19579e3 100644
--- a/superset-frontend/src/components/Select/Select.tsx
+++ b/superset-frontend/src/components/Select/Select.tsx
@@ -310,8 +310,9 @@ const Select = forwardRef(
 
     const handleOnDeselect: SelectProps['onDeselect'] = (value, option) => {
       if (Array.isArray(selectValue)) {
-        let array = selectValue as AntdLabeledValue[];
-        array = array.filter(element => getValue(element) !== getValue(value));
+        const array = (selectValue as AntdLabeledValue[]).filter(
+          element => getValue(element) !== getValue(value),
+        );
         setSelectValue(array);
 
         // removes new option

Reply via email to