close empty collection selection modal

This commit is contained in:
Abhinav-grd 2021-05-31 16:47:47 +05:30
parent c1c4d1272b
commit 3ed4fc2b4d

View file

@ -40,6 +40,7 @@ function CollectionSelector({
}: Props) { }: Props) {
useEffect(() => { useEffect(() => {
if (directlyShowNextModal && attributes) { if (directlyShowNextModal && attributes) {
props.onHide();
attributes.showNextModal(); attributes.showNextModal();
} }
}, [attributes]); }, [attributes]);