mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
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:
parent
aa815359f8
commit
0f425f8811
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue