mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Fixed default page value
no issue - Fixes Incorrect assignment of default page in case of missing data set
This commit is contained in:
parent
a873554be3
commit
3a4c93b82d
1 changed files with 2 additions and 1 deletions
|
@ -109,7 +109,8 @@ export default class App extends React.Component {
|
|||
// Handler for custom buttons
|
||||
this.clickHandler = (event) => {
|
||||
const target = event.currentTarget;
|
||||
const page = (target && target.dataset.membersTriggerButton) || this.getDefaultPage();
|
||||
const {page: defaultPage} = this.getDefaultPage();
|
||||
const page = (target && target.dataset.membersTriggerButton) || defaultPage;
|
||||
|
||||
event.preventDefault();
|
||||
this.onAction('openPopup', {page});
|
||||
|
|
Loading…
Add table
Reference in a new issue