Skip to content

Commit

Permalink
add more fix on mutater
Browse files Browse the repository at this point in the history
  • Loading branch information
jinghua-qa committed Oct 8, 2021
1 parent a99f845 commit d1ff789
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions superset-frontend/src/profile/components/CreatedContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class CreatedContent extends React.PureComponent<CreatedContentProps> {
const mutator = (data: Slice[]) =>
data.map(slice => ({
slice: <a href={slice.url}>{slice.title}</a>,
favorited: moment.utc(slice.dttm).fromNow(),
_favorited: slice.dttm,
created: moment.utc(slice.dttm).fromNow(),
_created: slice.dttm,
}));
return (
<TableLoader
Expand All @@ -52,8 +52,8 @@ class CreatedContent extends React.PureComponent<CreatedContentProps> {
const mutator = (data: Dashboard[]) =>
data.map(dash => ({
dashboard: <a href={dash.url}>{dash.title}</a>,
favorited: moment.utc(dash.dttm).fromNow(),
_favorited: dash.dttm,
created: moment.utc(dash.dttm).fromNow(),
_created: dash.dttm,
}));
return (
<TableLoader
Expand Down

0 comments on commit d1ff789

Please sign in to comment.