Skip to content

Commit 83c66d7

Browse files
gtbackafharokibanamachine
committed
Use newfeed.service config for all newsfeeds (#90252)
Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
1 parent 392ba21 commit 83c66d7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/plugins/newsfeed/public/plugin.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ export class NewsfeedPublicPlugin
5151
return {
5252
createNewsFeed$: (endpoint: NewsfeedApiEndpoint) => {
5353
const config = Object.assign({}, this.config, {
54-
service: { pathTemplate: `/${endpoint}/v{VERSION}.json` },
54+
service: {
55+
...this.config.service,
56+
pathTemplate: `/${endpoint}/v{VERSION}.json`,
57+
},
5558
});
5659
return this.fetchNewsfeed(core, config);
5760
},

0 commit comments

Comments
 (0)