From 0fd9b6376251c73f2adfd37ec80d2145178683d6 Mon Sep 17 00:00:00 2001 From: ab77 Date: Fri, 16 Oct 2020 15:19:22 -0700 Subject: [PATCH] Fixes check allowing preloading in local (unmanaged) mode * adds apiEndpoint empty string check Change-type: patch --- src/device-state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device-state.ts b/src/device-state.ts index 758c9e11..e4efbf13 100644 --- a/src/device-state.ts +++ b/src/device-state.ts @@ -467,7 +467,7 @@ export async function setTarget(target: TargetState, localSource?: boolean) { await config.set({ name: target.local.name }, trx); await deviceConfig.setTarget(target.local.config, trx); - if (localSource || apiEndpoint == null) { + if (localSource || apiEndpoint == null || apiEndpoint === '') { await applicationManager.setTarget( target.local.apps, target.dependent,