Skip to content

Commit ab898ef

Browse files
authored
Merge pull request #2243 from dpalou/MOBILE-3239
MOBILE-3239 block: Don't fetch data in invalidate for site plugin blocks
2 parents 386d9a8 + 0054412 commit ab898ef

File tree

1 file changed

+4
-2
lines changed
  • src/core/siteplugins/components/block

1 file changed

+4
-2
lines changed

src/core/siteplugins/components/block/block.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ export class CoreSitePluginsBlockComponent extends CoreBlockBaseComponent implem
6363
}
6464

6565
/**
66-
* Pass on content invalidation by refreshing content in the plugin content component.
66+
* Invalidate block data.
67+
*
68+
* @return Promise resolved when done.
6769
*/
6870
protected invalidateContent(): Promise<any> {
69-
return Promise.resolve(this.content.refreshContent());
71+
return this.sitePluginsProvider.invalidateContent(this.component, this.method, this.args);
7072
}
7173
}

0 commit comments

Comments
 (0)