fix: trigger form change when collections are being added to list of product collections (#987)

* fix: trigger form change when collections are being added to list of product collections

* fix: eslint and prettier

Co-authored-by: danilofatcat <danilo.gacevic@fatcatcoders.com>
This commit is contained in:
Danilo Gačević 2021-02-25 14:00:47 +01:00 committed by GitHub
parent e5e5c638ad
commit 0af427e36e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -220,7 +220,7 @@ function useProductUpdateForm(
triggerChange();
};
const handleCollectionSelect = createMultiAutocompleteSelectHandler(
form.toggleValue,
event => form.toggleValue(event, triggerChange),
opts.setSelectedCollections,
opts.selectedCollections,
opts.collections