[#77] fixed when getEventAsync is dispatched to prevent missing data
This commit is contained in:
@@ -182,13 +182,7 @@ export default function EventDisplayModal({
|
||||
onClose({}, "backdropClick");
|
||||
};
|
||||
|
||||
const [detailsLoaded, setDetailsLoaded] = useState(false);
|
||||
|
||||
const handleToggleShowMore = async () => {
|
||||
if (!detailsLoaded) {
|
||||
await dispatch(getEventAsync(event));
|
||||
setDetailsLoaded(true);
|
||||
}
|
||||
setShowMore(!showMore);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user