mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 06:13:43 +01:00
Fix “open” link of media modal not closing modal (#16524)
This commit is contained in:
parent
1d67acb72f
commit
af08229ff4
1 changed files with 5 additions and 1 deletions
|
@ -114,7 +114,11 @@ class Footer extends ImmutablePureComponent {
|
|||
return;
|
||||
}
|
||||
|
||||
const { status } = this.props;
|
||||
const { status, onClose } = this.props;
|
||||
|
||||
if (onClose) {
|
||||
onClose();
|
||||
}
|
||||
|
||||
router.history.push(`/statuses/${status.get('id')}`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue