diff --git a/src/client/app/common/define-widget.ts b/src/client/app/common/define-widget.ts index 2fae28be72..56314a4104 100644 --- a/src/client/app/common/define-widget.ts +++ b/src/client/app/common/define-widget.ts @@ -66,7 +66,7 @@ export default function(data: { this.bakeProps(); - (this as any).api('i/update_widget', { + this.$root.api('i/update_widget', { id: this.id, data: this.props });