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

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;
}
}