From d050fb1459de15ffcd93e8f4d5dae72eda887102 Mon Sep 17 00:00:00 2001 From: yihangx Date: Thu, 19 Dec 2024 01:13:49 -0800 Subject: [PATCH] fix cannot save local network to workspace --- src/components/ToolBar/DataMenu/SaveWorkspaceToNDEx.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/ToolBar/DataMenu/SaveWorkspaceToNDEx.tsx b/src/components/ToolBar/DataMenu/SaveWorkspaceToNDEx.tsx index f7f2593c..e9bfde3a 100644 --- a/src/components/ToolBar/DataMenu/SaveWorkspaceToNDEx.tsx +++ b/src/components/ToolBar/DataMenu/SaveWorkspaceToNDEx.tsx @@ -128,17 +128,16 @@ export const SaveWorkspaceToNDExMenuItem = ( ) const workspace = await getWorkspaceFromDb(currentWorkspaceId) + const onlyNdexNetworkIds = workspace.networkIds.filter(id => summaries[id]?.isNdex !== false); const response = await ndexClient.createCyWebWorkspace({ name: workspaceName, options: { currentNetwork: workspace.currentNetworkId }, - networkIDs: workspace.networkIds, + networkIDs: onlyNdexNetworkIds, }) const { uuid, modificationTime } = response setId(uuid) renameWorkspace(workspaceName) - console.log(modificationTime) - addMessage({ message: `Saved workspace to NDEx successfully.`, duration: 3000,