From 00544125e449cd237390bb3bd9b98197ca610177 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 14 Jan 2020 12:59:16 +0100 Subject: [PATCH] MOBILE-3239 block: Don't fetch data in invalidate for site plugin blocks --- src/core/siteplugins/components/block/block.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/siteplugins/components/block/block.ts b/src/core/siteplugins/components/block/block.ts index 7a817fb88..7f034a041 100644 --- a/src/core/siteplugins/components/block/block.ts +++ b/src/core/siteplugins/components/block/block.ts @@ -63,9 +63,11 @@ export class CoreSitePluginsBlockComponent extends CoreBlockBaseComponent implem } /** - * Pass on content invalidation by refreshing content in the plugin content component. + * Invalidate block data. + * + * @return Promise resolved when done. */ protected invalidateContent(): Promise { - return Promise.resolve(this.content.refreshContent()); + return this.sitePluginsProvider.invalidateContent(this.component, this.method, this.args); } }