Skip to content

Commit

Permalink
remove the randomId key from Table row; parent element has the key pr…
Browse files Browse the repository at this point in the history
…operty
  • Loading branch information
DJWalker42 committed Nov 8, 2024
1 parent 8fdb2b9 commit 4135860
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {ReactElement, useEffect, useState} from "react";
import {Accordion, Fieldset, Grid, Group, ScrollArea, Table, Text} from "@mantine/core";
import {ObjectIdentifier, ProposalSynopsis} from "../../generated/proposalToolSchemas.ts";
import {fetchSubmittedProposalResourceGetSubmittedProposals} from "../../generated/proposalToolComponents.ts";
import {randomId} from "@mantine/hooks";

type SubmissionDetail = {
cycleName: string,
Expand Down Expand Up @@ -115,7 +114,7 @@ function CycleSubmissionDetail(props: {

return(
submissionDetail ?
<Table.Tr key={randomId()}>
<Table.Tr>
<Table.Td>{submissionDetail.cycleName}</Table.Td>
<Table.Td>{submissionDetail.submissionDate}</Table.Td>
</Table.Tr>
Expand Down

0 comments on commit 4135860

Please sign in to comment.