Set the first app to active if no active apps

Add support for a block list item which only contains settings
This commit is contained in:
Matthew Care
2022-09-03 22:58:03 +02:00
committed by Michael Latouche
parent fdc1b02b4f
commit 1bd0a1f86d

View File

@@ -35,6 +35,11 @@ angular.module("umbraco")
}
}
var activeApp = apps.filter(x => x.active);
if (activeApp.length === 0 && apps.length > 0) {
apps[0].active = true;
}
vm.tabs = apps;
}