Skip to content

Commit

Permalink
feat: [SIG-582]: removed console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarRajput-7 committed May 16, 2024
1 parent b586294 commit 05fde30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 2 additions & 4 deletions frontend/src/api/plannedDowntime/getAllDowntimeSchedules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ export type PayloadProps = { data: DowntimeSchedules[] };

export const getAllDowntimeSchedules = async (
props: GetAllDowntimeSchedulesPayloadProps,
): Promise<AxiosResponse<PayloadProps>> => {
console.log(props);
return axios.get('/downtime_schedules', { params: props });
};
): Promise<AxiosResponse<PayloadProps>> =>
axios.get('/downtime_schedules', { params: props });

export interface GetAllDowntimeSchedulesPayloadProps {
acitve: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ export function PlannedDowntimeForm(
: values?.recurrenceSelect?.repeatOn,
repeatType: (values?.recurrenceSelect?.repeatType as Option)?.value,
};
console.log('here-recurrence=change', recurrenceData);

const payloadValues = { ...values, recurrence: recurrenceData };
await saveHanlder(payloadValues);
Expand Down Expand Up @@ -191,7 +190,6 @@ export function PlannedDowntimeForm(
value: string,
options: DefaultOptionType | DefaultOptionType[],
): void => {
console.log(options, value);
form.setFieldValue(alertRuleFormName, options);
setSelectedTags(options);
};
Expand All @@ -208,7 +206,6 @@ export function PlannedDowntimeForm(
const newTags = selectedTags.filter(
(tag: DefaultOptionType) => tag.value !== removedTag,
);
console.log(newTags);
form.setFieldValue(alertRuleFormName, newTags);
setSelectedTags(newTags);
};
Expand Down

0 comments on commit 05fde30

Please sign in to comment.