Skip to content

Commit

Permalink
Fix adding chart date format (#1793)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanenkoxx authored Nov 11, 2024
1 parent 24a382e commit d777721
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import moment from 'moment';
import type {EntryScope} from 'shared';
import {WorkbookNavigationMinimalQa} from 'shared';
import type {GetEntryResponse, GetWorkbookEntriesArgs} from 'shared/schema';
import {CLUSTERS_DATE_FORMAT_DATE} from 'ui/constants/misc';
import {DEFAULT_DATE_FORMAT} from 'ui/constants/misc';

import {PlaceholderIllustration} from '../PlaceholderIllustration/PlaceholderIllustration';

Expand Down Expand Up @@ -148,7 +148,7 @@ class WorkbookNavigationMinimal extends React.Component<Props, State> {
private renderItem = (item: Item) => {
const {entry, inactive, qa} = item;
const name = entry.key.split('/').pop();
const date = moment(entry.createdAt).format(CLUSTERS_DATE_FORMAT_DATE);
const date = moment(entry.createdAt).format(DEFAULT_DATE_FORMAT);

return (
<div data-qa={qa} className={b('row', {inactive})}>
Expand Down
2 changes: 0 additions & 2 deletions src/ui/constants/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,3 @@ export {
WIZARD_DATASET_ID_PARAMETER_KEY,
DL_ADAPTIVE_TABS_BREAK_POINT_CONFIG,
};

export const CLUSTERS_DATE_FORMAT_DATE = 'MM/DD/YYYY';

0 comments on commit d777721

Please sign in to comment.