MetaItem.onContextMenu callback dependencies fixed

This commit is contained in:
NikolaBorislavovHristov 2019-05-13 18:15:52 +03:00
parent 37918ab2e0
commit 465e66fb38

View file

@ -27,7 +27,7 @@ const MetaItem = React.memo(({ className, menuClassName, id, type, posterShape =
event.preventDefault();
menuRef.current.open();
}
}, [menuRef.current]);
}, []);
const placeholderIcon = ICON_FOR_TYPE[type] || 'ic_movies';
return (