Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Commit

Permalink
update image category bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Csaba Molnar authored Aug 21, 2019
1 parent 51541be commit 98f5094
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ export const CategoryDropTarget = (props: CategoryDropTargetProps) => {
const { category, children, updateImageCategory } = props;

const drop = React.useCallback(
item => {
updateImageCategory(item.identifier, category.identifier);
droppedItem => {
Array.prototype.forEach.call(droppedItem.selectedItems, (item: string) => {
updateImageCategory(item, category.identifier);
});
},
[category.identifier, updateImageCategory]
);
Expand Down

0 comments on commit 98f5094

Please sign in to comment.