From e2bb990336074d7a57f7586e8696d6ffec105d79 Mon Sep 17 00:00:00 2001 From: poomthiti Date: Tue, 31 Jan 2023 15:03:05 +0700 Subject: [PATCH 1/4] fix: migrate row key duplicates --- .../contract-details/components/InstantiateInfo.tsx | 2 +- .../components/tables/migration/index.tsx | 10 ++++++++-- src/lib/services/publicProjectService.ts | 2 ++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/lib/pages/contract-details/components/InstantiateInfo.tsx b/src/lib/pages/contract-details/components/InstantiateInfo.tsx index 1bf24d52c..bfbe3349f 100644 --- a/src/lib/pages/contract-details/components/InstantiateInfo.tsx +++ b/src/lib/pages/contract-details/components/InstantiateInfo.tsx @@ -34,7 +34,7 @@ const RenderPortId = ({ portId }: { portId: string }) => { > {charArray?.map((line, idx) => idx === charArray.length - 1 ? ( - + {line} diff --git a/src/lib/pages/contract-details/components/tables/migration/index.tsx b/src/lib/pages/contract-details/components/tables/migration/index.tsx index 7589e4d95..b60439ed5 100644 --- a/src/lib/pages/contract-details/components/tables/migration/index.tsx +++ b/src/lib/pages/contract-details/components/tables/migration/index.tsx @@ -68,9 +68,15 @@ export const MigrationTable = ({ return ( - {migrationHistories.map((history) => ( + {migrationHistories.map((history, idx) => ( diff --git a/src/lib/services/publicProjectService.ts b/src/lib/services/publicProjectService.ts index a56d9f437..c0bd3c67c 100644 --- a/src/lib/services/publicProjectService.ts +++ b/src/lib/services/publicProjectService.ts @@ -89,5 +89,7 @@ export const usePublicProjectByContractAddress = ( return useQuery(["public_project_by_contract_address"], queryFn, { keepPreviousData: true, enabled: !!contractAddress, + retry: 0, + refetchOnWindowFocus: false, }); }; From c5d7b7b867d8bb7febca0be761f47caa9380b9b4 Mon Sep 17 00:00:00 2001 From: poomthiti Date: Tue, 31 Jan 2023 15:04:12 +0700 Subject: [PATCH 2/4] chore: chagnelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15dd4c31c..bd1481d14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -114,6 +114,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 - [#132](https://github.com/alleslabs/celatone-frontend/pull/132) Fix permission field in upload simulation - [#121](https://github.com/alleslabs/celatone-frontend/pull/121) Fix code snippet for query axios - [#129](https://github.com/alleslabs/celatone-frontend/pull/129) Fix wallet disconnection on network query change From 8fb86f0160747b3bc6026e452f430e2b6b68eae5 Mon Sep 17 00:00:00 2001 From: poomthiti Date: Wed, 1 Feb 2023 10:49:21 +0700 Subject: [PATCH 3/4] refactor: change retry to false --- src/lib/services/publicProjectService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/services/publicProjectService.ts b/src/lib/services/publicProjectService.ts index c0bd3c67c..ab5e32d90 100644 --- a/src/lib/services/publicProjectService.ts +++ b/src/lib/services/publicProjectService.ts @@ -89,7 +89,7 @@ export const usePublicProjectByContractAddress = ( return useQuery(["public_project_by_contract_address"], queryFn, { keepPreviousData: true, enabled: !!contractAddress, - retry: 0, + retry: false, refetchOnWindowFocus: false, }); }; From 8089dbfc4ea68944457398c144ab3143f6103d4f Mon Sep 17 00:00:00 2001 From: poomthiti Date: Wed, 1 Feb 2023 12:36:43 +0700 Subject: [PATCH 4/4] chore: rewrite changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd1481d14..0f02522d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -114,7 +114,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 +- [#142](https://github.com/alleslabs/celatone-frontend/pull/142) Fix migration table row duplicate and add key to port id render - [#132](https://github.com/alleslabs/celatone-frontend/pull/132) Fix permission field in upload simulation - [#121](https://github.com/alleslabs/celatone-frontend/pull/121) Fix code snippet for query axios - [#129](https://github.com/alleslabs/celatone-frontend/pull/129) Fix wallet disconnection on network query change