diff --git a/x-pack/plugins/licensing/common/license_update.ts b/x-pack/plugins/licensing/common/license_update.ts index b674f4a066ce3..b344d8ce2d16a 100644 --- a/x-pack/plugins/licensing/common/license_update.ts +++ b/x-pack/plugins/licensing/common/license_update.ts @@ -39,11 +39,11 @@ export function createLicenseUpdate( const startWithArgs = initialValues ? [undefined, initialValues] : [undefined]; const license$: Observable = fetched$.pipe( - shareReplay(1), startWith(...startWithArgs), pairwise(), filter(([previous, next]) => hasLicenseInfoChanged(previous, next!)), - map(([, next]) => next!) + map(([, next]) => next!), + shareReplay(1) ); // start periodic license fetch right away