mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Do not set null value to select controller
This commit is contained in:
@@ -115,6 +115,9 @@ export default class extends TomSelectController {
|
||||
}
|
||||
|
||||
setValueOnTomSelectController = (element, value) => {
|
||||
if (!value) {
|
||||
return;
|
||||
}
|
||||
this.application
|
||||
.getControllerForElementAndIdentifier(element, "tom-select")
|
||||
.control.setValue(value, true);
|
||||
|
||||
Reference in New Issue
Block a user