fix: console warnings

This commit is contained in:
sriram veeraghanta 2024-05-11 17:47:00 +05:30
parent 4aed6e7aed
commit 91a66a757a
3 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import { FC } from "react"; import { FC, Fragment } from "react";
import { observer } from "mobx-react-lite"; import { observer } from "mobx-react-lite";
import { TIssue } from "@plane/types"; import { TIssue } from "@plane/types";
// hooks // hooks
@ -45,7 +45,7 @@ export const IssueList: FC<IIssueList> = observer((props) => {
{subIssueIds && {subIssueIds &&
subIssueIds.length > 0 && subIssueIds.length > 0 &&
subIssueIds.map((issueId) => ( subIssueIds.map((issueId) => (
<> <Fragment key={issueId}>
<IssueListItem <IssueListItem
workspaceSlug={workspaceSlug} workspaceSlug={workspaceSlug}
projectId={projectId} projectId={projectId}
@ -56,7 +56,7 @@ export const IssueList: FC<IIssueList> = observer((props) => {
handleIssueCrudState={handleIssueCrudState} handleIssueCrudState={handleIssueCrudState}
subIssueOperations={subIssueOperations} subIssueOperations={subIssueOperations}
/> />
</> </Fragment>
))} ))}
<div <div

View File

@ -1,3 +1,4 @@
import { Fragment } from "react";
import { getRandomInt, getRandomLength } from "../utils"; import { getRandomInt, getRandomLength } from "../utils";
const ListItemRow = () => ( const ListItemRow = () => (
@ -8,13 +9,13 @@ const ListItemRow = () => (
</div> </div>
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
{[...Array(6)].map((_, index) => ( {[...Array(6)].map((_, index) => (
<> <Fragment key={index}>
{getRandomInt(1, 2) % 2 === 0 ? ( {getRandomInt(1, 2) % 2 === 0 ? (
<span key={index} className="h-5 w-5 bg-custom-background-80 rounded" /> <span key={index} className="h-5 w-5 bg-custom-background-80 rounded" />
) : ( ) : (
<span className="h-5 w-16 bg-custom-background-80 rounded" /> <span className="h-5 w-16 bg-custom-background-80 rounded" />
)} )}
</> </Fragment>
))} ))}
</div> </div>
</div> </div>

View File

@ -1,7 +1,7 @@
import { action, makeObservable, observable } from "mobx"; import { action, makeObservable, observable } from "mobx";
// types // types
import { RootStore } from "@/store/root.store";
import { IUserLite } from "@plane/types"; import { IUserLite } from "@plane/types";
import { RootStore } from "@/store/root.store";
import { IProjectMemberStore, ProjectMemberStore } from "./project-member.store"; import { IProjectMemberStore, ProjectMemberStore } from "./project-member.store";
import { IWorkspaceMemberStore, WorkspaceMemberStore } from "./workspace-member.store"; import { IWorkspaceMemberStore, WorkspaceMemberStore } from "./workspace-member.store";