mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: unique key errors (#3500)
This commit is contained in:
parent
61f92563a9
commit
09a1a55da8
@ -50,11 +50,11 @@ export const DashboardWidgets = observer(() => {
|
|||||||
// if the widget is full width, return it in a 2 column grid
|
// if the widget is full width, return it in a 2 column grid
|
||||||
if (widget.fullWidth)
|
if (widget.fullWidth)
|
||||||
return (
|
return (
|
||||||
<div className="lg:col-span-2">
|
<div key={key} className="lg:col-span-2">
|
||||||
<WidgetComponent dashboardId={homeDashboardId} workspaceSlug={workspaceSlug} />
|
<WidgetComponent dashboardId={homeDashboardId} workspaceSlug={workspaceSlug} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
else return <WidgetComponent dashboardId={homeDashboardId} workspaceSlug={workspaceSlug} />;
|
else return <WidgetComponent key={key} dashboardId={homeDashboardId} workspaceSlug={workspaceSlug} />;
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -99,7 +99,7 @@ export const CreatedIssuesWidget: React.FC<WidgetProps> = observer((props) => {
|
|||||||
</div>
|
</div>
|
||||||
<Tab.Panels as="div" className="h-full">
|
<Tab.Panels as="div" className="h-full">
|
||||||
{ISSUES_TABS_LIST.map((tab) => (
|
{ISSUES_TABS_LIST.map((tab) => (
|
||||||
<Tab.Panel as="div" className="h-full flex flex-col">
|
<Tab.Panel key={tab.key} as="div" className="h-full flex flex-col">
|
||||||
<WidgetIssuesList
|
<WidgetIssuesList
|
||||||
issues={widgetStats.issues}
|
issues={widgetStats.issues}
|
||||||
tab={tab.key}
|
tab={tab.key}
|
||||||
|
@ -57,7 +57,7 @@ const ProjectListItem: React.FC<ProjectListItemProps> = observer((props) => {
|
|||||||
<div className="mt-2">
|
<div className="mt-2">
|
||||||
<AvatarGroup>
|
<AvatarGroup>
|
||||||
{projectDetails.members?.map((member) => (
|
{projectDetails.members?.map((member) => (
|
||||||
<Avatar src={member.member__avatar} name={member.member__display_name} />
|
<Avatar key={member.member_id} src={member.member__avatar} name={member.member__display_name} />
|
||||||
))}
|
))}
|
||||||
</AvatarGroup>
|
</AvatarGroup>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user