I have created a custom attribute(multiselect) for product with the same filter type as category selection on Magento 2. Attribute selection is working fine when creating a new product however it is not working on edit form. I have noticed below error from knockout js on console.
knockout.js:1449 Uncaught TypeError: Cannot read property 'apply' of undefined at Function.ko.observableArray.fn.(anonymous function) [as push]
i modified the component by adding the following code
'arguments' => [
'data' => [
'config'=>[
'component'=>'Magento_Ui/js/form/element/ui-select',
'elementTmpl' => 'ui/grid/filters/elements/ui-select',
'filterOptions' => true,
'multiple' => true,
'disableLabel' => true,
"showCheckbox" => true,
]
]
]
Also I have attached the screenshots of the error I am facing.
A help to fix this issue would be much appreciated.