Skip to content

Commit

Permalink
fix(native-filters): show overridden chart name on scoping tree (#15038)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Jun 8, 2021
1 parent 0e07a5c commit efd7007
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ export const buildTree = (
) {
const currentTreeItem = {
key: node.id,
title: node.meta.sliceName || node.meta.text || node.id.toString(),
title:
node.meta.sliceNameOverride ||
node.meta.sliceName ||
node.meta.text ||
node.id.toString(),
children: [],
};
treeItem.children.push(currentTreeItem);
Expand Down
1 change: 1 addition & 0 deletions superset-frontend/src/dashboard/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export type LayoutItem = {
chartId: number;
height: number;
sliceName?: string;
sliceNameOverride?: string;
text?: string;
uuid: string;
width: number;
Expand Down

0 comments on commit efd7007

Please sign in to comment.