Skip to content

Commit

Permalink
Fix maps listing in visualization listing page
Browse files Browse the repository at this point in the history
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
  • Loading branch information
junqiu-lei committed Feb 15, 2023
1 parent 14c92e8 commit 901fd8a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,18 @@ export class CustomImportMapPlugin
stage: 'production',
appExtensions: {
visualizations: {
docTypes: [PLUGIN_ID],
toListItem: ({ id, attributes }) => ({
docTypes: [MAP_SAVED_OBJECT_TYPE],
toListItem: ({ id, attributes, updated_at: updatedAt }) => ({
description: attributes?.description,
editApp: PLUGIN_ID,
editApp: MAPS_APP_ID,
editUrl: `${encodeURIComponent(id)}`,
icon: MAPS_APP_ICON,
id,
savedObjectType: MAP_SAVED_OBJECT_TYPE,
title: attributes?.title,
typeTitle: PLUGIN_NAME,
typeTitle: MAPS_APP_DISPLAY_NAME,
stage: 'production',
updated_at: updatedAt,
}),
},
},
Expand Down

0 comments on commit 901fd8a

Please sign in to comment.