diff --git a/web/components/ui/multi-level-dropdown.tsx b/web/components/ui/multi-level-dropdown.tsx
index 8633d1586..d66702ccc 100644
--- a/web/components/ui/multi-level-dropdown.tsx
+++ b/web/components/ui/multi-level-dropdown.tsx
@@ -108,12 +108,12 @@ export const MultiLevelDropdown: React.FC
= ({
height === "sm"
? "max-h-28"
: height === "md"
- ? "max-h-44"
- : height === "rg"
- ? "max-h-56"
- : height === "lg"
- ? "max-h-80"
- : ""
+ ? "max-h-44"
+ : height === "rg"
+ ? "max-h-56"
+ : height === "lg"
+ ? "max-h-80"
+ : ""
}`}
>
{option.children ? (
diff --git a/web/helpers/dashboard.helper.ts b/web/helpers/dashboard.helper.ts
index c8c2e7746..0c3b8da07 100644
--- a/web/helpers/dashboard.helper.ts
+++ b/web/helpers/dashboard.helper.ts
@@ -49,10 +49,10 @@ export const getRedirectionFilters = (type: TIssuesListTypes): string => {
type === "pending"
? "?state_group=backlog,unstarted,started"
: type === "upcoming"
- ? `?target_date=${today};after`
- : type === "overdue"
- ? `?target_date=${today};before`
- : "?state_group=completed";
+ ? `?target_date=${today};after`
+ : type === "overdue"
+ ? `?target_date=${today};before`
+ : "?state_group=completed";
return filterParams;
};
diff --git a/web/helpers/emoji.helper.tsx b/web/helpers/emoji.helper.tsx
index 1fb746f51..513f9b6c4 100644
--- a/web/helpers/emoji.helper.tsx
+++ b/web/helpers/emoji.helper.tsx
@@ -41,13 +41,16 @@ export const groupReactions: (reactions: any[], key: string) => { [key: string]:
reactions: any,
key: string
) => {
- const groupedReactions = reactions.reduce((acc: any, reaction: any) => {
- if (!acc[reaction[key]]) {
- acc[reaction[key]] = [];
- }
- acc[reaction[key]].push(reaction);
- return acc;
- }, {} as { [key: string]: any[] });
+ const groupedReactions = reactions.reduce(
+ (acc: any, reaction: any) => {
+ if (!acc[reaction[key]]) {
+ acc[reaction[key]] = [];
+ }
+ acc[reaction[key]].push(reaction);
+ return acc;
+ },
+ {} as { [key: string]: any[] }
+ );
return groupedReactions;
};
diff --git a/web/helpers/issue.helper.ts b/web/helpers/issue.helper.ts
index 0070ed201..3e6689151 100644
--- a/web/helpers/issue.helper.ts
+++ b/web/helpers/issue.helper.ts
@@ -172,19 +172,15 @@ export const renderIssueBlocksStructure = (blocks: TIssue[]): IGanttBlock[] =>
target_date: block.target_date ? new Date(block.target_date) : null,
}));
+export function getChangedIssuefields(formData: Partial, dirtyFields: { [key: string]: boolean | undefined }) {
+ const changedFields: Partial = {};
- export function getChangedIssuefields(
- formData: Partial,
- dirtyFields: { [key: string]: boolean | undefined }
- ) {
- const changedFields: Partial = {};
-
- const dirtyFieldKeys = Object.keys(dirtyFields) as (keyof TIssue)[];
- for (const dirtyField of dirtyFieldKeys) {
- if (!!dirtyFields[dirtyField]) {
- changedFields[dirtyField] = formData[dirtyField];
- }
+ const dirtyFieldKeys = Object.keys(dirtyFields) as (keyof TIssue)[];
+ for (const dirtyField of dirtyFieldKeys) {
+ if (!!dirtyFields[dirtyField]) {
+ changedFields[dirtyField] = formData[dirtyField];
}
+ }
- return changedFields;
- }
\ No newline at end of file
+ return changedFields;
+}
diff --git a/web/layouts/settings-layout/profile/layout.tsx b/web/layouts/settings-layout/profile/layout.tsx
index ed594c9f2..67f545a2d 100644
--- a/web/layouts/settings-layout/profile/layout.tsx
+++ b/web/layouts/settings-layout/profile/layout.tsx
@@ -21,9 +21,7 @@ export const ProfileSettingsLayout: FC = (props) => {
{header}
-
- {children}
-
+ {children}
diff --git a/web/pages/[workspaceSlug]/projects/[projectId]/archived-issues/[archivedIssueId].tsx b/web/pages/[workspaceSlug]/projects/[projectId]/archived-issues/[archivedIssueId].tsx
index 6e74de061..0b1b238a9 100644
--- a/web/pages/[workspaceSlug]/projects/[projectId]/archived-issues/[archivedIssueId].tsx
+++ b/web/pages/[workspaceSlug]/projects/[projectId]/archived-issues/[archivedIssueId].tsx
@@ -69,9 +69,10 @@ const ArchivedIssueDetailsPage: NextPageWithLayout = observer(() => {
title: "Success",
message:
issue &&
- `${getProjectById(issue.project_id)?.identifier}-${
- issue?.sequence_id
- } is restored successfully under the project ${getProjectById(issue.project_id)?.name}`,
+ `${getProjectById(issue.project_id)
+ ?.identifier}-${issue?.sequence_id} is restored successfully under the project ${getProjectById(
+ issue.project_id
+ )?.name}`,
});
router.push(`/${workspaceSlug}/projects/${projectId}/issues/${archivedIssueId}`);
})
diff --git a/web/store/member/workspace-member.store.ts b/web/store/member/workspace-member.store.ts
index 66466a410..b1472a9d2 100644
--- a/web/store/member/workspace-member.store.ts
+++ b/web/store/member/workspace-member.store.ts
@@ -127,9 +127,8 @@ export class WorkspaceMemberStore implements IWorkspaceMemberStore {
const searchedWorkspaceMemberIds = workspaceMemberIds?.filter((userId) => {
const memberDetails = this.getWorkspaceMemberDetails(userId);
if (!memberDetails) return false;
- const memberSearchQuery = `${memberDetails.member.first_name} ${memberDetails.member.last_name} ${
- memberDetails.member?.display_name
- } ${memberDetails.member.email ?? ""}`;
+ const memberSearchQuery = `${memberDetails.member.first_name} ${memberDetails.member.last_name} ${memberDetails
+ .member?.display_name} ${memberDetails.member.email ?? ""}`;
return memberSearchQuery.toLowerCase()?.includes(searchQuery.toLowerCase());
});
return searchedWorkspaceMemberIds;