fix: Fixed multiselect component label update (#5352)

* Fixed documentation issue in widgets -> table.md (#5226)

* [docs] Fixed edit page link (#5253)

* [docs]:fixed edit page link

* [docs]:fixed edit page link

* Update render-preview-deploy.yml (#5282)

* fix: Fixed multiselect component label update

* Update table.md

---------

Co-authored-by: Harsh Mange <harshmange44@gmail.com>
Co-authored-by: Jittojoyes98 <51293782+Jittojoyes98@users.noreply.github.com>
Co-authored-by: Adish M <44204658+adishM98@users.noreply.github.com>
Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
This commit is contained in:
Eklal Budhathoki 2023-03-20 11:53:25 +05:45 committed by GitHub
parent aa815359f8
commit 0f425f8811
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,13 +46,13 @@ export const Multiselect = function Multiselect({
setExposedVariable('values', newValues);
setSelected(selectOptions.filter((option) => newValues.includes(option.value)));
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [JSON.stringify(values)]);
}, [JSON.stringify(values), JSON.stringify(display_values)]);
useEffect(() => {
setExposedVariable('values', value);
setSelected(selectOptions.filter((option) => value.includes(option.value)));
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [JSON.stringify(value)]);
}, [JSON.stringify(value), JSON.stringify(display_values)]);
useEffect(() => {
if (value && !selected) {