Skip to content

Commit

Permalink
Fix the cron values for hour and min not showing correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
aniketkatkar97 committed Oct 17, 2024
1 parent cf840bb commit c4e376a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions openmetadata-ui/src/main/resources/ui/src/utils/CronUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ export const getStateValue = (value?: string, defaultValue?: string) => {
const stateVal: StateValue = {
selectedPeriod: cronType,
cron: value,
min: isNaN(dow) ? 0 : min,
hour: isNaN(dow) ? 0 : hour,
min: isNaN(min) ? 0 : min,
hour: isNaN(hour) ? 0 : hour,
dow: isNaN(dow) ? 1 : dow,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import tagClassBase, { TagClassBase } from './TagClassBase';

jest.mock('../rest/searchAPI');


jest.mock('./StringsUtils', () => ({
getEncodedFqn: jest.fn().mockReturnValue('test'),
escapeESReservedCharacters: jest.fn().mockReturnValue('test'),
Expand Down

0 comments on commit c4e376a

Please sign in to comment.