mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 13:47:54 +00:00
Fixes check allowing preloading in local (unmanaged) mode
* adds apiEndpoint empty string check Change-type: patch
This commit is contained in:
parent
2a8c1bdfe2
commit
0fd9b63762
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user