Skip to content

Commit

Permalink
small frontend changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-RyanK committed Feb 16, 2023
1 parent 876cf4d commit c1080fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ function PropertiesModal({
</StyledHelpBlock>
</FormItem>
{isFeatureEnabled(FeatureFlag.TAGGING_SYSTEM) && (
<h3 style={{ marginTop: '1em' }}>{t('Tags')}</h3>
<h3 css={{ marginTop: '1em' }}>{t('Tags')}</h3>
)}
{isFeatureEnabled(FeatureFlag.TAGGING_SYSTEM) && (
<FormItem>
Expand Down
3 changes: 1 addition & 2 deletions superset-frontend/src/tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ export function fetchAllTags(
callback: (json: JsonObject) => void,
error: (response: Response) => void,
) {
const url = `/api/v1/tag`;
SupersetClient.get({ endpoint: url })
SupersetClient.get({ endpoint: `/api/v1/tag` })
.then(({ json }) => callback(json))
.catch(response => error(response));
}
Expand Down
8 changes: 7 additions & 1 deletion superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,13 @@ function DashboardList(props: DashboardListProps) {
row: {
original: { tags = [] },
},
}: any) => (
}: {
row: {
original: {
tags: Tag[];
};
};
}) => (
// Only show custom type tags
<TagsList
tags={tags.filter(
Expand Down

0 comments on commit c1080fc

Please sign in to comment.