From 145947d2dd77eb6e92ba4f9ae4f9ed6b55302400 Mon Sep 17 00:00:00 2001 From: v_xuanzhou Date: Mon, 9 Dec 2024 15:58:36 +0800 Subject: [PATCH] fix code --- .../workspace/service/impl/DSSWorkspaceServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dss-framework/dss-framework-workspace-server/src/main/java/com/webank/wedatasphere/dss/framework/workspace/service/impl/DSSWorkspaceServiceImpl.java b/dss-framework/dss-framework-workspace-server/src/main/java/com/webank/wedatasphere/dss/framework/workspace/service/impl/DSSWorkspaceServiceImpl.java index da28463258..6d1ebd359d 100644 --- a/dss-framework/dss-framework-workspace-server/src/main/java/com/webank/wedatasphere/dss/framework/workspace/service/impl/DSSWorkspaceServiceImpl.java +++ b/dss-framework/dss-framework-workspace-server/src/main/java/com/webank/wedatasphere/dss/framework/workspace/service/impl/DSSWorkspaceServiceImpl.java @@ -272,7 +272,7 @@ public DSSWorkspaceHomePageVO getWorkspaceHomePage(String userName, String modul String homepageUrl = "/workspaceHome?workspaceId=" + workspaceIds.get(0); DSSWorkspace defaultWorkspace = dssWorkspaces.stream() .filter(workspcae -> workspcae.getName().equalsIgnoreCase(ApplicationConf.HOMEPAGE_DEFAULT_WORKSPACE.getValue())).findAny().orElse(null); - if(ObjectUtil.isEmpty(defaultWorkspace)){ + if(ObjectUtil.isNotEmpty(defaultWorkspace)){ homepageUrl = "/workspaceHome?workspaceId=" + defaultWorkspace.getId(); }