Skip to content

Commit

Permalink
Merge pull request #142 from alleslabs/fix/migrate-duplicate
Browse files Browse the repository at this point in the history
Fix/migrate duplicate
  • Loading branch information
poomthiti committed Feb 1, 2023
2 parents eefdbc0 + 2f56c70 commit 1f710a2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Bug fixes

- [#142](https://github.com/alleslabs/celatone-frontend/pull/142) Fix migration table row duplicate and add key to port id render
- [#138](https://github.com/alleslabs/celatone-frontend/pull/138) Remove execute table in contract details page (due to data issue)
- [#136](https://github.com/alleslabs/celatone-frontend/pull/136) Fix decode message from query param in execute page
- [#132](https://github.com/alleslabs/celatone-frontend/pull/132) Fix permission field in upload simulation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const RenderPortId = ({ portId }: { portId: string }) => {
>
{charArray?.map((line, idx) =>
idx === charArray.length - 1 ? (
<Flex align="center">
<Flex align="center" key={line}>
{line}
<Copier value={portId} className="ibc-port-copy" display="none" />
</Flex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,15 @@ export const MigrationTable = ({
return (
<TableContainer>
<MigrationHeader templateColumns={templateColumns} />
{migrationHistories.map((history) => (
{migrationHistories.map((history, idx) => (
<MigrationRow
key={history.codeId}
key={
history.codeId +
history.remark.operation +
history.remark.type +
history.remark.value +
idx.toString()
}
history={history}
templateColumns={templateColumns}
/>
Expand Down
2 changes: 2 additions & 0 deletions src/lib/services/publicProjectService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,7 @@ export const usePublicProjectByContractAddress = (
return useQuery(["public_project_by_contract_address"], queryFn, {
keepPreviousData: true,
enabled: !!contractAddress,
retry: false,
refetchOnWindowFocus: false,
});
};

2 comments on commit 1f710a2

@vercel
Copy link

@vercel vercel bot commented on 1f710a2 Feb 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 1f710a2 Feb 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.