FIX: 'currentUser' is a property of the 'widget'

This commit is contained in:
Régis Hanol 2019-04-05 18:43:04 +02:00 committed by GitHub
parent 347e3e5a46
commit 06e3b25d04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ export default class PostCooked {
if (decoratorHelper) {
this.decoratorHelper = decoratorHelper;
if (decoratorHelper.widget && decoratorHelper.currentUser) {
this.currentUser = decoratorHelper.currentUser;
if (decoratorHelper.widget && decoratorHelper.widget.currentUser) {
this.currentUser = decoratorHelper.widget.currentUser;
}
}