fix(core): do not create first app if local workspace disabled (#13289)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Prevented creation of initial app data when local workspace
functionality is disabled, ensuring correct behavior based on user
settings.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Yii
2025-07-28 10:42:02 +08:00
committed by GitHub
parent 9899fad000
commit 6a1b53dd11

View File

@@ -147,9 +147,10 @@ export const Component = ({
}, [desktopApi]);
useEffect(() => {
if (listIsLoading || list.length > 0) {
if (listIsLoading || list.length > 0 || !enableLocalWorkspace) {
return;
}
createFirstAppData(workspacesService)
.then(createdWorkspace => {
if (createdWorkspace) {
@@ -177,6 +178,7 @@ export const Component = ({
loggedIn,
listIsLoading,
list,
enableLocalWorkspace,
]);
if (navigating || creating) {