chore: remove redundant console logs (#868)

This commit is contained in:
Aaryan Khandelwal 2023-04-18 01:15:26 +05:30 committed by GitHub
parent 5f20e65ca6
commit fa5c994ddc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 18 additions and 64 deletions

View file

@ -94,11 +94,8 @@ const SingleModule: React.FC = () => {
await modulesService
.addIssuesToModule(workspaceSlug as string, projectId as string, moduleId as string, data)
.then((res) => {
console.log(res);
mutate(MODULE_ISSUES(moduleId as string));
})
.catch((e) =>
.then(() => mutate(MODULE_ISSUES(moduleId as string)))
.catch(() =>
setToastAlert({
type: "error",
title: "Error!",

View file

@ -81,12 +81,7 @@ const LabelsSettings: NextPage = () => {
mutate((prevData) => prevData?.filter((p) => p.id !== labelId), false);
issuesService
.deleteIssueLabel(workspaceSlug as string, projectDetails.id, labelId)
.then((res) => {
console.log(res);
})
.catch((e) => {
console.log(e);
});
.catch((e) => console.log(e));
}
};