From 0d5f60d9bf91334fab69a7d912206e9d15248f5f Mon Sep 17 00:00:00 2001 From: Cole Blanchard Date: Tue, 22 Aug 2023 12:53:05 -0400 Subject: [PATCH] fix: issue where duplicate and blank publication appears when adding for the first time --- .../components/tera-selected-resources-header-pane.vue | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/client/hmi-client/src/page/data-explorer/components/tera-selected-resources-header-pane.vue b/packages/client/hmi-client/src/page/data-explorer/components/tera-selected-resources-header-pane.vue index fe3a15a5a9..3288dc18a2 100644 --- a/packages/client/hmi-client/src/page/data-explorer/components/tera-selected-resources-header-pane.vue +++ b/packages/client/hmi-client/src/page/data-explorer/components/tera-selected-resources-header-pane.vue @@ -68,11 +68,6 @@ const addResourcesToProject = async (projectId: string) => { // then, link and store in the project assets const assetsType = AssetType.Publications; await ProjectService.addAsset(projectId, assetsType, documentId); - - // TODO: Find a way for documents to be added without this - // update local copy of project assets - // @ts-ignore - resources.activeProject?.assets?.[AssetType.Publications].push(documentId, body); } } if (isModel(selectedItem)) {