From 746db1c0be9839acaa11c5e3ffd48f53c1a1fa88 Mon Sep 17 00:00:00 2001 From: Qxisylolo Date: Thu, 31 Oct 2024 15:30:23 +0800 Subject: [PATCH] delete comment Signed-off-by: Qxisylolo --- src/plugins/data_source/server/saved_objects/data_source.ts | 2 +- .../objects_table/components/table.test.tsx | 2 +- .../management_section/objects_table/components/table.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/data_source/server/saved_objects/data_source.ts b/src/plugins/data_source/server/saved_objects/data_source.ts index 326e95cb41cf..cbdbaa469a6a 100644 --- a/src/plugins/data_source/server/saved_objects/data_source.ts +++ b/src/plugins/data_source/server/saved_objects/data_source.ts @@ -16,7 +16,7 @@ export const dataSource: SavedObjectsType = { namespaceType: 'agnostic', hidden: false, management: { - icon: 'database', // todo: pending ux #2034 + icon: 'database', defaultSearchField: 'title', importableAndExportable: true, getTitle(obj) { diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/table.test.tsx b/src/plugins/saved_objects_management/public/management_section/objects_table/components/table.test.tsx index 0f48408eb0a8..a9a18e85c945 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/components/table.test.tsx +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/components/table.test.tsx @@ -84,7 +84,7 @@ const defaultProps: TableProps = { canGoInApp: () => true, pageIndex: 1, pageSize: 2, - workspaceIdNameMap: new Map([ + workspaceNameIdLookup: new Map([ ['test1', 'jVyiM7'], ['test2', '8rZ0OL'], ['test3', 'evIuNZ'], diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/table.tsx b/src/plugins/saved_objects_management/public/management_section/objects_table/components/table.tsx index dc3cb7dab0c0..3ec907b5d96c 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/components/table.tsx +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/components/table.tsx @@ -188,7 +188,7 @@ export class Table extends PureComponent { pageSize, itemId, items, - workspaceIdNameMap, + workspaceNameIdLookup, totalItemCount, isSearching, filters, @@ -313,7 +313,7 @@ export class Table extends PureComponent { const displayedWorkspaces = workspaces.slice(0, 1); const remainingWorkspaces = workspaces.length - 1; const getWorkspaceNameById = (workspaceId: string) => { - for (const [name, id] of workspaceIdNameMap) { + for (const [name, id] of workspaceNameIdLookup) { if (id === workspaceId) { return name; }