From 88ff8fac3097c015c70a04a1e933a684fd45a378 Mon Sep 17 00:00:00 2001 From: Jason Frerich Date: Wed, 2 Nov 2022 19:35:23 -0500 Subject: [PATCH] [Bug] Emit boolean with "of" operator (#6729) --- app/components/autocomplete/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/autocomplete/index.ts b/app/components/autocomplete/index.ts index 531a617ed9..d5b2f78d83 100644 --- a/app/components/autocomplete/index.ts +++ b/app/components/autocomplete/index.ts @@ -2,6 +2,7 @@ // See LICENSE.txt for license information. import withObservables from '@nozbe/with-observables'; +import {of as of$} from 'rxjs'; import AppsManager from '@managers/apps_manager'; @@ -12,7 +13,7 @@ type OwnProps = { } const enhanced = withObservables(['serverUrl'], ({serverUrl}: OwnProps) => ({ - isAppsEnabled: serverUrl ? AppsManager.observeIsAppsEnabled(serverUrl) : false, + isAppsEnabled: serverUrl ? AppsManager.observeIsAppsEnabled(serverUrl) : of$(false), })); export default enhanced(Autocomplete);