Skip to content

Commit

Permalink
delete comment
Browse files Browse the repository at this point in the history
Signed-off-by: Qxisylolo <[email protected]>
  • Loading branch information
Qxisylolo committed Nov 19, 2024
1 parent 22e868d commit d4ce21c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export class Table extends PureComponent<TableProps, TableState> {
pageSize,
itemId,
items,
workspaceIdNameMap,
workspaceNameIdLookup,
totalItemCount,
isSearching,
filters,
Expand Down Expand Up @@ -313,7 +313,7 @@ export class Table extends PureComponent<TableProps, TableState> {
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;
}
Expand Down

0 comments on commit d4ce21c

Please sign in to comment.